Merge remote-tracking branch 'regulator/topic/lp8788' into regulator-next
[firefly-linux-kernel-4.4.55.git] / drivers / rtc / rtc-pl031.c
index 10c1a3454e48ecce74c595d5cd3a33a7b3f4af1d..81c5077feff32af9724da4e81f674b4d29c524e5 100644 (file)
@@ -350,7 +350,9 @@ static int pl031_probe(struct amba_device *adev, const struct amba_id *id)
        /* Enable the clockwatch on ST Variants */
        if (vendor->clockwatch)
                data |= RTC_CR_CWEN;
-       writel(data | RTC_CR_EN, ldata->base + RTC_CR);
+       else
+               data |= RTC_CR_EN;
+       writel(data, ldata->base + RTC_CR);
 
        /*
         * On ST PL031 variants, the RTC reset value does not provide correct