diff options
author | Andrey Smirnov <[email protected]> | 2019-03-10 23:27:35 -0700 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2019-03-18 08:58:45 +0100 |
commit | fc57949cfd1f1060a6154e45ebeeb80ac85bd499 (patch) | |
tree | 6dfd705ce00488c571d5ce1676491209db50252f /tools/perf/scripts/python/mem-phys-addr.py | |
parent | db9ed63ca510ecb3df0b4fec170830a96017b7d1 (diff) |
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 <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Bartosz Golaszewski <[email protected]>
Cc: Chris Healy <[email protected]>
Cc: Andrew Lunn <[email protected]>
Cc: Heiner Kallweit <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions