rtc: coh901331: fix a missing check of clk_prepare
authorKangjie Lu <kjlu@umn.edu>
Wed, 26 Dec 2018 02:43:33 +0000 (20:43 -0600)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 22 Jan 2019 18:01:19 +0000 (19:01 +0100)
commit5910fa0d0d9809c4d8fbf1fb905a8c86fbf2eccb
tree8ea1ba19b57dc4ea23dfc9d34eec158b661278e6
parentbbb4383826b20cdc9efbd8ffdd19a5fa58320175
rtc: coh901331: fix a missing check of clk_prepare

clk_prepare() could fail, so let's check its status and if it fails
return its error code upstream.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-coh901331.c