]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
serial: lpc32xx_hs: allow compile-testing
authorArnd Bergmann <arnd@arndb.de>
Fri, 9 Aug 2019 14:40:30 +0000 (16:40 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 15 Aug 2019 19:33:04 +0000 (21:33 +0200)
The only thing that prevents building this driver on other
platforms is the mach/hardware.h include, which is not actually
used here at all, so remove the line and allow CONFIG_COMPILE_TEST.

Link: https://lore.kernel.org/r/20190809144043.476786-5-arnd@arndb.de
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Sylvain Lemieux <slemieux.tyco@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/tty/serial/Kconfig
drivers/tty/serial/lpc32xx_hs.c

index 3083dbae35f7e4175c8f24b85dca4daac1de859c..518aac902e4bf59a7831a6b17519e28cd9127ffe 100644 (file)
@@ -739,7 +739,8 @@ config SERIAL_PNX8XXX_CONSOLE
 
 config SERIAL_HS_LPC32XX
        tristate "LPC32XX high speed serial port support"
-       depends on ARCH_LPC32XX && OF
+       depends on ARCH_LPC32XX || COMPILE_TEST
+       depends on OF
        select SERIAL_CORE
        help
          Support for the LPC32XX high speed serial ports (up to 900kbps).
index f4e27d0ad9472a016d33845ad95d41f8e7b8594c..7f14cd8fac472243b9c15c6429112dfc0ae1ffe7 100644 (file)
@@ -25,8 +25,6 @@
 #include <linux/irq.h>
 #include <linux/gpio.h>
 #include <linux/of.h>
-#include <mach/platform.h>
-#include <mach/hardware.h>
 
 /*
  * High Speed UART register offsets