spi: jcore: disable clock when registering spi conroller failed
authorTakuo Koguchi <takuo.koguchi@gmail.com>
Thu, 7 Dec 2017 10:11:41 +0000 (19:11 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 13 Dec 2017 19:08:24 +0000 (19:08 +0000)
commit16eab16ef9382704ff12c68ef52d62c68219cbb9
tree537c68eb437b50897b75f2277692304328bacb45
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
spi: jcore: disable clock when registering spi conroller failed

 When probe function fails in registering the spi controller, the clock
 should remain disabled.

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

Signed-off-by: Takuo Koguchi <takuo.koguchi.sw@hitachi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-jcore.c