From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Subject: Re: [PATCH v5 07/18] platform/x86: intel_scu_ipc: Add managed function to register SCU IPC Date: Tue, 11 Feb 2020 17:51:29 +0200 Message-ID: <20200211155129.GG10400@smile.fi.intel.com> References: <20200211132603.73509-1-mika.westerberg@linux.intel.com> <20200211132603.73509-8-mika.westerberg@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20200211132603.73509-8-mika.westerberg@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org To: Mika Westerberg Cc: Darren Hart , Lee Jones , Greg Kroah-Hartman , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, Zha Qipeng , "David E . Box" , Guenter Roeck , Heikki Krogerus , Wim Van Sebroeck , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: platform-driver-x86.vger.kernel.org On Tue, Feb 11, 2020 at 04:25:52PM +0300, Mika Westerberg wrote: > Drivers such as intel_pmc_ipc.c can be unloaded as well so in order to > support those in this driver add a new function that can be called to > unregister the SCU IPC when it is not needed anymore. > > We also add a managed version of the intel_scu_ipc_register() that takes > care of calling intel_scu_ipc_unregister() automatically when the driver > is unbound. ... > + devres = devres_alloc(devm_intel_scu_ipc_unregister, sizeof(*devres), > + GFP_KERNEL); Maybe devres -> dr and put on one line? But it's up to you, I'm fine with the current as well. -- With Best Regards, Andy Shevchenko