Commit 50ad1528 authored by Arnd Bergmann's avatar Arnd Bergmann

usb: udc: lpc32xx: allow compile-testing

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-3-arnd@arndb.deAcked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: default avatarSylvain Lemieux <slemieux.tyco@gmail.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 23565bae
...@@ -45,7 +45,8 @@ config USB_AT91 ...@@ -45,7 +45,8 @@ config USB_AT91
config USB_LPC32XX config USB_LPC32XX
tristate "LPC32XX USB Peripheral Controller" tristate "LPC32XX USB Peripheral Controller"
depends on ARCH_LPC32XX && I2C depends on ARCH_LPC32XX || COMPILE_TEST
depends on I2C
select USB_ISP1301 select USB_ISP1301
help help
This option selects the USB device controller in the LPC32xx SoC. This option selects the USB device controller in the LPC32xx SoC.
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/prefetch.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/usb/ch9.h> #include <linux/usb/ch9.h>
...@@ -35,8 +36,6 @@ ...@@ -35,8 +36,6 @@
#include <linux/seq_file.h> #include <linux/seq_file.h>
#endif #endif
#include <mach/hardware.h>
/* /*
* USB device configuration structure * USB device configuration structure
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment