]> git.karo-electronics.de Git - linux-beck.git/commitdiff
tty: cyclades: cyz_interrupt is only used for PCI
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Jan 2016 21:54:57 +0000 (22:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 07:41:17 +0000 (23:41 -0800)
When CONFIG_PCI is not set, enabling CONFIG_CYZ_INTR has no
practical effect other than generating a warning about an
unused function:

drivers/tty/cyclades.c:1184:20: warning: 'cyz_interrupt' defined but not used [-Wunused-function]
 static irqreturn_t cyz_interrupt(int irq, void *dev_id)

This adds a dependency to avoid that warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/Kconfig

index c01f4509587779346e20cace71d192fe0a997c00..82c4d2e45319b2ad27092469cd437d587d327560 100644 (file)
@@ -226,7 +226,7 @@ config CYCLADES
 
 config CYZ_INTR
        bool "Cyclades-Z interrupt mode operation"
-       depends on CYCLADES
+       depends on CYCLADES && PCI
        help
          The Cyclades-Z family of multiport cards allows 2 (two) driver op
          modes: polling and interrupt. In polling mode, the driver will check