diff options
Diffstat (limited to 'arch/x86/kernel/rtc.c')
| -rw-r--r-- | arch/x86/kernel/rtc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/rtc.c b/arch/x86/kernel/rtc.c index 6f39cab052d..3f2ad2640d8 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> |
| @@ -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, |
