Martin Blumenstingl bd791c4880 gpio: stp-xway: improve module clock error handling
Three module clock error handling improvements:
- use devm_clk_get() so the clock instance can be freed if
  devm_gpiochip_add_data() fails later on
- switch to clk_prepare_enable() so the driver is ready whenever the
  lantiq target switches to the common clock framework
- disable the clock again (using clk_disable_unprepare()) if
  devm_gpiochip_add_data()

All of these are virtually no-ops with the current lantiq target.
However, these will be relevant if we switch to the common clock
framework.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20190702223248.31934-3-martin.blumenstingl@googlemail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2019-07-04 09:39:42 +02:00
..
2019-04-08 13:03:09 +02:00
2018-03-19 01:50:07 +01:00
2018-05-16 14:35:24 +02:00
2018-08-10 23:19:17 +02:00
2018-12-14 14:27:41 +01:00
2019-06-26 09:40:33 +02:00
2019-04-23 13:02:15 +02:00
2019-06-27 15:56:50 +01:00
2017-12-22 15:24:31 +01:00
2018-01-09 14:51:00 +01:00
2019-06-27 15:56:51 +01:00
2019-06-14 10:16:15 +02:00