|
@@ -7,6 +7,10 @@
|
|
* the Free Software Foundation.
|
|
* the Free Software Foundation.
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+#ifdef CONFIG_X86
|
|
|
|
+#include <asm/x86_init.h>
|
|
|
|
+#endif
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Names.
|
|
* Names.
|
|
*/
|
|
*/
|
|
@@ -840,6 +844,12 @@ static int __init i8042_platform_init(void)
|
|
{
|
|
{
|
|
int retval;
|
|
int retval;
|
|
|
|
|
|
|
|
+#ifdef CONFIG_X86
|
|
|
|
+ /* Just return if pre-detection shows no i8042 controller exist */
|
|
|
|
+ if (!x86_platform.i8042_detect())
|
|
|
|
+ return -ENODEV;
|
|
|
|
+#endif
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* On ix86 platforms touching the i8042 data register region can do really
|
|
* On ix86 platforms touching the i8042 data register region can do really
|
|
* bad things. Because of this the region is always reserved on ix86 boxes.
|
|
* bad things. Because of this the region is always reserved on ix86 boxes.
|