Message ID | 20190731195713.3150463-3-arnd@arndb.de (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Series | ARM: move lpc32xx and dove to multiplatform | expand |
On Wed, Jul 31, 2019 at 09:56:44PM +0200, Arnd Bergmann wrote: > 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. > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/usb/gadget/udc/Kconfig | 3 ++- > drivers/usb/gadget/udc/lpc32xx_udc.c | 2 -- > 2 files changed, 2 insertions(+), 3 deletions(-) Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#219): https://linux.kernel.org/g/patchwork-soc/message/219 Mute This Topic: https://linux.kernel.org/mt/32671417/1554929 Group Owner: patchwork-soc+owner@linux.kernel.org Unsubscribe: https://linux.kernel.org/g/patchwork-soc/unsub [patchwork-linux-kernel-org@patchwork.kernel.org] -=-=-=-=-=-=-=-=-=-=-=-
Acked-by: Sylvain Lemieux <slemieux.tyco@gmail.com> On Thu, Aug 1, 2019 at 1:58 AM Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote: > > On Wed, Jul 31, 2019 at 09:56:44PM +0200, Arnd Bergmann wrote: > > 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. > > > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > --- > > drivers/usb/gadget/udc/Kconfig | 3 ++- > > drivers/usb/gadget/udc/lpc32xx_udc.c | 2 -- > > 2 files changed, 2 insertions(+), 3 deletions(-) > > Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#237): https://linux.kernel.org/g/patchwork-soc/message/237 Mute This Topic: https://linux.kernel.org/mt/32671417/1554929 Group Owner: patchwork-soc+owner@linux.kernel.org Unsubscribe: https://linux.kernel.org/g/patchwork-soc/unsub [patchwork-linux-kernel-org@patchwork.kernel.org] -=-=-=-=-=-=-=-=-=-=-=-
diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig index ef0259a950ba..d354036ff6c8 100644 --- a/drivers/usb/gadget/udc/Kconfig +++ b/drivers/usb/gadget/udc/Kconfig @@ -45,7 +45,8 @@ config USB_AT91 config USB_LPC32XX tristate "LPC32XX USB Peripheral Controller" - depends on ARCH_LPC32XX && I2C + depends on ARCH_LPC32XX || COMPILE_TEST + depends on I2C select USB_ISP1301 help This option selects the USB device controller in the LPC32xx SoC. diff --git a/drivers/usb/gadget/udc/lpc32xx_udc.c b/drivers/usb/gadget/udc/lpc32xx_udc.c index 5f1b14f3e5a0..4d8847988a50 100644 --- a/drivers/usb/gadget/udc/lpc32xx_udc.c +++ b/drivers/usb/gadget/udc/lpc32xx_udc.c @@ -35,8 +35,6 @@ #include <linux/seq_file.h> #endif -#include <mach/hardware.h> - /* * USB device configuration structure */
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. Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/usb/gadget/udc/Kconfig | 3 ++- drivers/usb/gadget/udc/lpc32xx_udc.c | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-)