]> Pileus Git - ~andy/linux/commitdiff
Input: i8042 - cleanup SERIO_I8042 dependencies
authorMark Salter <msalter@redhat.com>
Wed, 1 Jan 2014 19:34:39 +0000 (11:34 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 2 Jan 2014 23:48:22 +0000 (15:48 -0800)
Remove messy dependencies from SERIO_I8042 by having it depend on one
Kconfig symbol (ARCH_MIGHT_HAVE_PC_SERIO) and having architectures
which need it select ARCH_MIGHT_HAVE_PC_SERIO in arch/*/Kconfig.
New architectures are unlikely to need SERIO_I8042, so this avoids
having an ever growing list of architectures to exclude.

Signed-off-by: Mark Salter <msalter@redhat.com>
Acked-by: "H. Peter Anvin" <hpa@zytor.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/Kconfig

index 8541f949778dc16953bdd269418113f0aa132e04..aec54e283580178741b6ced917f1ea429f23c554 100644 (file)
@@ -16,14 +16,19 @@ config SERIO
          To compile this driver as a module, choose M here: the
          module will be called serio.
 
+config ARCH_MIGHT_HAVE_PC_SERIO
+       bool
+       help
+         Select this config option from the architecture Kconfig if
+         the architecture might use a PC serio device (i8042) to
+         communicate with keyboard, mouse, etc.
+
 if SERIO
 
 config SERIO_I8042
        tristate "i8042 PC Keyboard controller"
        default y
-       depends on !PARISC && (!ARM || FOOTBRIDGE_HOST) && \
-                  (!SUPERH || SH_CAYMAN) && !M68K && !BLACKFIN && !S390 && \
-                  !ARC
+       depends on ARCH_MIGHT_HAVE_PC_SERIO
        help
          i8042 is the chip over which the standard AT keyboard and PS/2
          mouse are connected to the computer. If you use these devices,