]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/rtc/rtc-at91sam9.c
rtc: rv8803: Remove the check for valid time
[karo-tx-linux.git] / drivers / rtc / rtc-at91sam9.c
index 7206e2fa43837545a11f61a5b298843678b31636..7418a763ce5202b37f96b0cf26863400aa953982 100644 (file)
@@ -268,7 +268,7 @@ static int at91_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled)
 static int at91_rtc_proc(struct device *dev, struct seq_file *seq)
 {
        struct sam9_rtc *rtc = dev_get_drvdata(dev);
-       u32 mr = mr = rtt_readl(rtc, MR);
+       u32 mr = rtt_readl(rtc, MR);
 
        seq_printf(seq, "update_IRQ\t: %s\n",
                        (mr & AT91_RTT_RTTINCIEN) ? "yes" : "no");
@@ -375,6 +375,7 @@ static int at91_rtc_probe(struct platform_device *pdev)
        if (!rtc)
                return -ENOMEM;
 
+       spin_lock_init(&rtc->lock);
        rtc->irq = irq;
 
        /* platform setup code should have handled this; sigh */