OSDN Git Service

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, 25 Feb 2018 10:03:48 +0000 (11:03 +0100)
commit33d71a8ff78d51f6f3a815972be5200d4db9c664
treea47d503c9c4e069852030f39a1a079e65648f41d
parent5820027ee20c874678b49dbd22cb70765437b5fb
tty: cyclades: cyz_interrupt is only used for PCI

commit 05ead49691d245f67bdd1b30cab5d9af522ac884 upstream.

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