aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-10-23 13:17:11 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-10-23 13:17:11 -0400
commitd7197a5ad8528642cb70f1d27d4d5c7332a2b395 (patch)
treedfaa26ab107c32d4a82deb4a060e310499fdafb9
parentf682a7920baf7b721d01dd317f3b532265357cbb (diff)
parentfa112cf1e8bc693d5a666b1c479a2859c8b6e0f1 (diff)
Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 platform updates from Ingo Molnar: "Two minor OLPC changes: a build fix and a new quirk" * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/olpc: Fix build error with CONFIG_MFD_CS5535=m x86/olpc: Indicate that legacy PC XO-1 platform should not register RTC
-rw-r--r--arch/x86/Kconfig3
-rw-r--r--arch/x86/platform/olpc/olpc-xo1-rtc.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 46d42af4501a..0a0580f2413d 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -2749,8 +2749,7 @@ config OLPC
2749 2749
2750config OLPC_XO1_PM 2750config OLPC_XO1_PM
2751 bool "OLPC XO-1 Power Management" 2751 bool "OLPC XO-1 Power Management"
2752 depends on OLPC && MFD_CS5535 && PM_SLEEP 2752 depends on OLPC && MFD_CS5535=y && PM_SLEEP
2753 select MFD_CORE
2754 ---help--- 2753 ---help---
2755 Add support for poweroff and suspend of the OLPC XO-1 laptop. 2754 Add support for poweroff and suspend of the OLPC XO-1 laptop.
2756 2755
diff --git a/arch/x86/platform/olpc/olpc-xo1-rtc.c b/arch/x86/platform/olpc/olpc-xo1-rtc.c
index a2b4efddd61a..8e7ddd7e313a 100644
--- a/arch/x86/platform/olpc/olpc-xo1-rtc.c
+++ b/arch/x86/platform/olpc/olpc-xo1-rtc.c
@@ -16,6 +16,7 @@
16 16
17#include <asm/msr.h> 17#include <asm/msr.h>
18#include <asm/olpc.h> 18#include <asm/olpc.h>
19#include <asm/x86_init.h>
19 20
20static void rtc_wake_on(struct device *dev) 21static void rtc_wake_on(struct device *dev)
21{ 22{
@@ -75,6 +76,8 @@ static int __init xo1_rtc_init(void)
75 if (r) 76 if (r)
76 return r; 77 return r;
77 78
79 x86_platform.legacy.rtc = 0;
80
78 device_init_wakeup(&xo1_rtc_device.dev, 1); 81 device_init_wakeup(&xo1_rtc_device.dev, 1);
79 return 0; 82 return 0;
80} 83}