Commit 73ab31ce authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: at91sam9: remove useless check

rtc->sclk necessarily points to a valid clocks at this point. Else the
probe would have aborted.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent ffe60fcf
...@@ -494,8 +494,7 @@ static int at91_rtc_remove(struct platform_device *pdev) ...@@ -494,8 +494,7 @@ static int at91_rtc_remove(struct platform_device *pdev)
/* disable all interrupts */ /* disable all interrupts */
rtt_writel(rtc, MR, mr & ~(AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN)); rtt_writel(rtc, MR, mr & ~(AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN));
if (!IS_ERR(rtc->sclk)) clk_disable_unprepare(rtc->sclk);
clk_disable_unprepare(rtc->sclk);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment