Skip to content

Commit d7197a5

Browse files
committed
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
2 parents f682a79 + fa112cf commit d7197a5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

arch/x86/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2749,8 +2749,7 @@ config OLPC
27492749

27502750
config OLPC_XO1_PM
27512751
bool "OLPC XO-1 Power Management"
2752-
depends on OLPC && MFD_CS5535 && PM_SLEEP
2753-
select MFD_CORE
2752+
depends on OLPC && MFD_CS5535=y && PM_SLEEP
27542753
---help---
27552754
Add support for poweroff and suspend of the OLPC XO-1 laptop.
27562755

arch/x86/platform/olpc/olpc-xo1-rtc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include <asm/msr.h>
1818
#include <asm/olpc.h>
19+
#include <asm/x86_init.h>
1920

2021
static void rtc_wake_on(struct device *dev)
2122
{
@@ -75,6 +76,8 @@ static int __init xo1_rtc_init(void)
7576
if (r)
7677
return r;
7778

79+
x86_platform.legacy.rtc = 0;
80+
7881
device_init_wakeup(&xo1_rtc_device.dev, 1);
7982
return 0;
8083
}

0 commit comments

Comments
 (0)