rtc: omap: fix unbalanced clk_prepare_enable/clk_disable_unprepare
authorAndreas Platschek <andreas.platschek@opentech.at>
Wed, 6 Dec 2017 19:42:38 +0000 (20:42 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 18 Dec 2017 22:05:11 +0000 (23:05 +0100)
commit2da6877f0e2ced7825a31556ada6b2ac2e50877f
treed9d4fcc54cd408afc583d1a93c8b0fdcc14c974e
parent994ec64c0a193940be7a6fd074668b9446d3b6c3
rtc: omap: fix unbalanced clk_prepare_enable/clk_disable_unprepare

There are 2 error paths after clk_prepare_enable() was called, where
clk_disable_unprepare() is missing.

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

Signed-off-by: Andreas Platschek <andreas.platschek@opentech.at>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-omap.c