Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torvalds/linux.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2018-03-17 13:05:44 +0300
committerMark Brown <broonie@kernel.org>2018-03-19 03:57:42 +0300
commit7c2861a6fb2c502d7b7aa85415e178f3c527a468 (patch)
tree7a825cd1d21d5f2a5e82e39abdf003b0aaabb1df /drivers/spi/spi-pxa2xx.c
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff)
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 'drivers/spi/spi-pxa2xx.c')
0 files changed, 0 insertions, 0 deletions