]> git.baikalelectronics.ru Git - kernel.git/commit
fsi: master-gpio: Add missing release function
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 13 Jun 2018 00:05:17 +0000 (10:05 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 12 Jul 2018 02:05:22 +0000 (12:05 +1000)
commit9c1b2970fc6db9ce30deaa5a494bfe9945d43bfe
treeb547165fa27419b423f16bbe0d067fcaf7458566
parent5922f6c82fc0b2a5f6669d158f907a522a32a695
fsi: master-gpio: Add missing release function

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>
drivers/fsi/fsi-master-gpio.c