From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joel Stanley Date: Thu, 28 Jun 2018 13:42:05 +0930 Subject: [PATCH 09/14] fsi: master-gpio: Add missing release function In-Reply-To: <20180626232605.13420-10-benh@kernel.crashing.org> References: <20180626232605.13420-1-benh@kernel.crashing.org> <20180626232605.13420-10-benh@kernel.crashing.org> Message-ID: List-Id: To: linux-aspeed@lists.ozlabs.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 27 June 2018 at 08:56, Benjamin Herrenschmidt wrote: > The embedded struct device needs a release function to be > able to successfully remove the driver. > > We remove the devm_gpiod_put() as they are unnecessary > (the resources will be released automatically) and because > fsi_master_unregister() will cause the master structure to > be freed. > > Signed-off-by: Benjamin Herrenschmidt Reviewed-by: Joel Stanley