summaryrefslogtreecommitdiffstats
path: root/block/opal_proto.h
diff options
context:
space:
mode:
authorAndré Gustavo Nakagomi Lopez <andregnl@usp.br>2021-10-25 09:19:50 -0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-11-17 17:51:31 +0000
commit8eebe6281ac1062764db23d181e3feb3305a3690 (patch)
tree74eb8d30562aad6d182234baaa4f9b32e6e397c4 /block/opal_proto.h
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf (diff)
downloadlinux-8eebe6281ac1062764db23d181e3feb3305a3690.tar.bz2
iio: adc: lpc18xx_adc: Reorder clk_get_rate() function call
clk_get_rate() is not guaranteed to work if called before clk_prepare_enable(). Reorder clk_get_rate(), so it's called after clk_prepare_enable() and after devm_add_action_or_reset() of lpc18xx_clk_disable(). Not that this is not a problem on this particular device, but it is good to remove a case that might get copied elsewhere. Suggested-by: Jonathan Cameron <jic23@kernel.org> Acked-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: André Gustavo Nakagomi Lopez <andregnl@usp.br> Link: https://lore.kernel.org/r/YXag5l4xBkGQH3tq@Andryuu.br Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'block/opal_proto.h')
0 files changed, 0 insertions, 0 deletions