summaryrefslogtreecommitdiffstats
path: root/lib/locking-selftest-softirq.h
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2019-07-03 00:32:46 +0200
committerLinus Walleij <linus.walleij@linaro.org>2019-07-04 09:39:42 +0200
commitbd791c48808a1f39a768a0096940d71e05bb0889 (patch)
tree6b611534d1e66ef64f4d96a34e212865081fb7c0 /lib/locking-selftest-softirq.h
parentgpio: stp-xway: simplify error handling in xway_stp_probe() (diff)
downloadlinux-bd791c48808a1f39a768a0096940d71e05bb0889.tar.xz
linux-bd791c48808a1f39a768a0096940d71e05bb0889.zip
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>
Diffstat (limited to 'lib/locking-selftest-softirq.h')
0 files changed, 0 insertions, 0 deletions