# Re: \[PATCH 09/14\] fsi: master-gpio: Add missing release function

- From: Joel Stanley \<joel@jms.id.au\>
- Date: 2018-06-28 04:12:32 
- List: linux-devicetree
- Page: https://ratatoskr.run/linux-devicetree/2018/06/5318729
- Thread: https://ratatoskr.run/linux-aspeed/2018/06/5317908/t.md

```text
On 27 June 2018 at 08:56, Benjamin Herrenschmidt
[ref] 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 <benh@kernel.crashing.org>

Reviewed-by: Joel Stanley <joel@jms.id.au>
```
