diff options
author | Feng Tang <feng.tang@intel.com> | 2010-07-07 16:02:16 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-07-07 20:05:07 -0400 |
commit | 5cdfa1c3bbabb809ef3134f741a63e13373a8cad (patch) | |
tree | 1f118ddcbc40f9040aa6f5d1f6bbf6049b694c52 /drivers/input/serio | |
parent | c9d46f63f8e89fd70f97b83fdc4e5d2e37d92aeb (diff) |
input: i8042 - add runtime check in x86's i8042_platform_init
Then it will first check x86_platforms's i8042 detection result,
then go on with normal probe.
Signed-off-by: Feng Tang <feng.tang@intel.com>
LKML-Reference: <4c34dd482753bb8f1@agluck-desktop.sc.intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'drivers/input/serio')
-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. |