diff options
author | Andrey Smirnov <[email protected]> | 2019-03-10 23:27:34 -0700 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2019-03-18 08:58:45 +0100 |
commit | db9ed63ca510ecb3df0b4fec170830a96017b7d1 (patch) | |
tree | 3470f2f5efad2cfe037e7194c49fbbd093804998 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 4a8909d0228133ec02ffac76590c055e593e8185 (diff) |
gpio: vf610: Use devres to disable clk_port
Clk_port 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_or_reset() 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