]> err.no Git - linux-2.6/blobdiff - drivers/input/serio/i8042.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-2.6] / drivers / input / serio / i8042.c
index 1f73cf72a7c5d76decfd594b4d2ccc51b9cd669a..65a74cfc187b12199bb3f291775e9223da504198 100644 (file)
@@ -1151,7 +1151,6 @@ static int __devinit i8042_setup_kbd(void)
 static int __devinit i8042_probe(struct platform_device *dev)
 {
        int error;
-       char param;
 
        error = i8042_controller_selftest();
        if (error)
@@ -1172,14 +1171,14 @@ static int __devinit i8042_probe(struct platform_device *dev)
                if (error)
                        goto out_fail;
        }
-
+#ifdef CONFIG_X86
        if (i8042_dritek) {
-               param = 0x90;
+               char param = 0x90;
                error = i8042_command(&param, 0x1059);
                if (error)
                        goto out_fail;
        }
-
+#endif
 /*
  * Ok, everything is ready, let's register all serio ports
  */