diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2018-03-17 13:05:44 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-03-18 17:57:42 -0700 |
commit | 7c2861a6fb2c502d7b7aa85415e178f3c527a468 (patch) | |
tree | 7a825cd1d21d5f2a5e82e39abdf003b0aaabb1df /drivers/spi/spi-pxa2xx.c | |
parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) | |
download | linux-7c2861a6fb2c502d7b7aa85415e178f3c527a468.tar.bz2 |
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