summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2018-03-17 13:05:44 +0300
committerMark Brown <broonie@kernel.org>2018-03-18 17:57:42 -0700
commit7c2861a6fb2c502d7b7aa85415e178f3c527a468 (patch)
tree7a825cd1d21d5f2a5e82e39abdf003b0aaabb1df /include
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff)
downloadlinux-stable-7c2861a6fb2c502d7b7aa85415e178f3c527a468.tar.gz
linux-stable-7c2861a6fb2c502d7b7aa85415e178f3c527a468.tar.bz2
linux-stable-7c2861a6fb2c502d7b7aa85415e178f3c527a468.zip
spi: jcore: disable ref_clk after getting its rate
The driver does not disable ref_clk on remove. According to the comment, the only reason to enable the clock is to get its rate. So, it should be safe to disable clk just after that. By the way, clk_prepare_enable() looks to be more appropriate than clk_enable() here. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions