]> git.itanic.dy.fi Git - linux-stable/commitdiff
tty: serial: 8250_exar: Does not use anything from 8250_pci
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 15 Sep 2023 09:43:36 +0000 (12:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2023 09:14:43 +0000 (11:14 +0200)
8250_exar includes linux/8250_pci.h and depends on SERIAL_8250_PCI.
Neither is necessary so this patch removes the include and changes
the depends on to SERIAL_8250 && PCI (taken from SERIAL_8250_PCI).

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230915094336.13278-2-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_exar.c
drivers/tty/serial/8250/Kconfig

index 077c3ba3539e6887dfe67d0ed95a864cc341bdc0..2f981342927865ccd536aa19f636ce3a4c90bc2f 100644 (file)
@@ -18,7 +18,6 @@
 #include <linux/slab.h>
 #include <linux/string.h>
 #include <linux/tty.h>
-#include <linux/8250_pci.h>
 #include <linux/delay.h>
 
 #include <asm/byteorder.h>
index ee17cf5c44c6b046227093d2892716e506d3e49d..d91924cb9b21291d9541a4cdfc273586c29e46f3 100644 (file)
@@ -148,7 +148,7 @@ config SERIAL_8250_PCI
 
 config SERIAL_8250_EXAR
        tristate "8250/16550 Exar/Commtech PCI/PCIe device support"
-       depends on SERIAL_8250_PCI
+       depends on SERIAL_8250 && PCI
        default SERIAL_8250
        help
          This builds support for XR17C1xx, XR17V3xx and some Commtech