]> 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)
commit784f6de10941da5c800ddf61ce3385b76409cb4a
tree429ca901f6c582dd3a78c21134ee3d54a24d32b0
parent9a182060ea32b2dc4a56a6b6196e3e7971f8a75f
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: 8379411aa7bd ("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