diff options
Diffstat (limited to 'arch/x86/kernel/rtc.c')
| -rw-r--r-- | arch/x86/kernel/rtc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kernel/rtc.c b/arch/x86/kernel/rtc.c index 1cfbbfc3ae26..3f2ad2640d85 100644 --- a/arch/x86/kernel/rtc.c +++ b/arch/x86/kernel/rtc.c | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | #include <linux/acpi.h> | 6 | #include <linux/acpi.h> |
| 7 | #include <linux/bcd.h> | 7 | #include <linux/bcd.h> |
| 8 | #include <linux/pnp.h> | 8 | #include <linux/pnp.h> |
| 9 | #include <linux/of.h> | ||
| 9 | 10 | ||
| 10 | #include <asm/vsyscall.h> | 11 | #include <asm/vsyscall.h> |
| 11 | #include <asm/x86_init.h> | 12 | #include <asm/x86_init.h> |
| @@ -76,7 +77,7 @@ int mach_set_rtc_mmss(unsigned long nowtime) | |||
| 76 | CMOS_WRITE(real_seconds, RTC_SECONDS); | 77 | CMOS_WRITE(real_seconds, RTC_SECONDS); |
| 77 | CMOS_WRITE(real_minutes, RTC_MINUTES); | 78 | CMOS_WRITE(real_minutes, RTC_MINUTES); |
| 78 | } else { | 79 | } else { |
| 79 | printk(KERN_WARNING | 80 | printk_once(KERN_NOTICE |
| 80 | "set_rtc_mmss: can't update from %d to %d\n", | 81 | "set_rtc_mmss: can't update from %d to %d\n", |
| 81 | cmos_minutes, real_minutes); | 82 | cmos_minutes, real_minutes); |
| 82 | retval = -1; | 83 | retval = -1; |
| @@ -236,6 +237,8 @@ static __init int add_rtc_cmos(void) | |||
| 236 | } | 237 | } |
| 237 | } | 238 | } |
| 238 | #endif | 239 | #endif |
| 240 | if (of_have_populated_dt()) | ||
| 241 | return 0; | ||
| 239 | 242 | ||
| 240 | platform_device_register(&rtc_device); | 243 | platform_device_register(&rtc_device); |
| 241 | dev_info(&rtc_device.dev, | 244 | dev_info(&rtc_device.dev, |
