summaryrefslogtreecommitdiffstats
path: root/Kconfig
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-03-10 23:27:35 -0700
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2019-03-18 08:58:45 +0100
commitfc57949cfd1f1060a6154e45ebeeb80ac85bd499 (patch)
tree6dfd705ce00488c571d5ce1676491209db50252f /Kconfig
parentdb9ed63ca510ecb3df0b4fec170830a96017b7d1 (diff)
downloadlinux-fc57949cfd1f1060a6154e45ebeeb80ac85bd499.tar.gz
linux-fc57949cfd1f1060a6154e45ebeeb80ac85bd499.tar.bz2
linux-fc57949cfd1f1060a6154e45ebeeb80ac85bd499.zip
gpio: vf610: Use devres to disable clk_gpio
Clk_gpio should be disabled in all error paths in the code that follws, including the case when either gpiochip_add_data() or gpiochip_irqchip_add() fail. To simplify things fix this by using devm_add_action() to disable corresponding clock in case of any erros as well as driver/device removal. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com> Cc: Chris Healy <cphealy@gmail.com> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Heiner Kallweit <hkallweit1@gmail.com> Cc: Fabio Estevam <festevam@gmail.com> Cc: linux-gpio@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-imx@nxp.com Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions