OSDN Git Service

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)
commitffe60fcfda98a3e4f51bc1e02ff5412a7e1c9c79
tree862fec0d89eae396612db8a9bf7be3856ddf5206
parent27675ef03c0535158b77af76591920fe041ebf14
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