]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pxa2xx: check clk_prepare_enable() return value
authorTobias Jordan <Tobias.Jordan@elektrobit.com>
Mon, 30 Apr 2018 14:30:06 +0000 (16:30 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 3 May 2018 23:40:05 +0000 (08:40 +0900)
commit6ff2c24d2f7c2b9dfd4946a61e10a4a549456a4e
tree429ca901f6c582dd3a78c21134ee3d54a24d32b0
parent3a83a3a3a4650f43a463aa0b7c2859682877aca5
spi: pxa2xx: check clk_prepare_enable() return value

clk_prepare_enable() can fail, so its return value should be checked and
acted upon.

Found by Linux Driver Verification project (linuxtesting.org).

Fixes: 51b938249d4e ("spi/pxa2xx: convert to the common clk framework")
Signed-off-by: Tobias Jordan <Tobias.Jordan@elektrobit.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c