]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: at91sam9: properly handle error case
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 28 Jul 2015 19:46:15 +0000 (21:46 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 11:19:08 +0000 (13:19 +0200)
commit75f24d187b6289ec4791a16ae0f71b2a1a612074
tree862fec0d89eae396612db8a9bf7be3856ddf5206
parent186b9a494435929688a8900d4c7aa695af801fa9
rtc: at91sam9: properly handle error case

In case of a probe error, it is possible to abort after issuing
clk_prepare_enable(). Ensure the clock is disabled and unprepared in that
case.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
drivers/rtc/rtc-at91sam9.c