|
@@ -427,10 +427,12 @@ static int __init omap_rtc_probe(struct platform_device *pdev)
|
|
|
}
|
|
|
platform_set_drvdata(pdev, rtc);
|
|
|
|
|
|
- /* clear pending irqs, and set 1/second periodic,
|
|
|
- * which we'll use instead of update irqs
|
|
|
+ /*
|
|
|
+ * disable interrupts
|
|
|
+ *
|
|
|
+ * NOTE: ALARM2 is not cleared on AM3352 if rtc_write (writeb) is used
|
|
|
*/
|
|
|
- rtc_write(0, OMAP_RTC_INTERRUPTS_REG);
|
|
|
+ rtc_writel(0, OMAP_RTC_INTERRUPTS_REG);
|
|
|
|
|
|
/* enable RTC functional clock */
|
|
|
if (id_entry->driver_data & OMAP_RTC_HAS_32KCLK_EN) {
|