]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: jcore: disable ref_clk after getting its rate
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 17 Mar 2018 10:05:44 +0000 (13:05 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 19 Mar 2018 00:57:42 +0000 (17:57 -0700)
commit7c2861a6fb2c502d7b7aa85415e178f3c527a468
tree7a825cd1d21d5f2a5e82e39abdf003b0aaabb1df
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
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>
drivers/spi/spi-jcore.c