diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-07-13 20:31:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-07-13 20:31:11 -0400 |
commit | bcefc8d0d3a0cba9078f519d69f138b93ad30e39 (patch) | |
tree | 45079de6cba248d2ea0f420cddda20f29f386aea /drivers/input/serio/i8042-x86ia64io.h | |
parent | 177dd7e1ebac9420636f155e8d429bc4f809c724 (diff) | |
parent | 5cdfa1c3bbabb809ef3134f741a63e13373a8cad (diff) |
Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
input: i8042 - add runtime check in x86's i8042_platform_init
Revert "Input: fixup X86_MRST selects"
Revert "Input: do not force selecting i8042 on Moorestown"
x86, mrst: Add i8042_detect API for Moorestwon platform
x86: Add i8042 pre-detection hook to x86_platform_ops
x86, platform: Export x86_platform to modules
Diffstat (limited to 'drivers/input/serio/i8042-x86ia64io.h')
-rw-r--r-- | drivers/input/serio/i8042-x86ia64io.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h index 6168469ad1a6..81003c4739f4 100644 --- a/drivers/input/serio/i8042-x86ia64io.h +++ b/drivers/input/serio/i8042-x86ia64io.h | |||
@@ -7,6 +7,10 @@ | |||
7 | * the Free Software Foundation. | 7 | * the Free Software Foundation. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #ifdef CONFIG_X86 | ||
11 | #include <asm/x86_init.h> | ||
12 | #endif | ||
13 | |||
10 | /* | 14 | /* |
11 | * Names. | 15 | * Names. |
12 | */ | 16 | */ |
@@ -840,6 +844,12 @@ static int __init i8042_platform_init(void) | |||
840 | { | 844 | { |
841 | int retval; | 845 | int retval; |
842 | 846 | ||
847 | #ifdef CONFIG_X86 | ||
848 | /* Just return if pre-detection shows no i8042 controller exist */ | ||
849 | if (!x86_platform.i8042_detect()) | ||
850 | return -ENODEV; | ||
851 | #endif | ||
852 | |||
843 | /* | 853 | /* |
844 | * On ix86 platforms touching the i8042 data register region can do really | 854 | * On ix86 platforms touching the i8042 data register region can do really |
845 | * bad things. Because of this the region is always reserved on ix86 boxes. | 855 | * bad things. Because of this the region is always reserved on ix86 boxes. |