Explorar o código

drivers/serial: add GENERIC_HARDIRQS dependency

Since SERIAL_CORE needs GENERIC_HARDIRQS (see below) and most serial drivers
select it, just add a GENERIC_HARDIRQS dependency to all serial drivers.

Fixes the compile error below:

drivers/tty/serial/serial_core.c: In function ‘uart_set_info’:
drivers/tty/serial/serial_core.c:725:2: error: implicit declaration of function ‘irq_canonicalize’

Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Heiko Carstens %!s(int64=12) %!d(string=hai) anos
pai
achega
f2eca58f2a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/tty/serial/Kconfig

+ 1 - 1
drivers/tty/serial/Kconfig

@@ -5,7 +5,7 @@
 if TTY
 if TTY
 
 
 menu "Serial drivers"
 menu "Serial drivers"
-	depends on HAS_IOMEM
+	depends on HAS_IOMEM && GENERIC_HARDIRQS
 
 
 source "drivers/tty/serial/8250/Kconfig"
 source "drivers/tty/serial/8250/Kconfig"