usb: add HAS_IOMEM dependency to USB_DWC2
authorVegard Nossum <vegard.nossum@oracle.com>
Wed, 10 Feb 2016 14:29:44 +0000 (15:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 01:09:56 +0000 (17:09 -0800)
drivers/built-in.o: In function `dwc2_driver_probe':
/home/vegard/linux/drivers/usb/dwc2/platform.c:491: undefined reference to `devm_ioremap_resource'

Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/Kconfig

index fd95ba6ec317fdacb13478d84c4157656893740c..b56920a56a7c5eae8c3629e2bf3eb5a5360d2173 100644 (file)
@@ -1,6 +1,7 @@
 config USB_DWC2
        tristate "DesignWare USB2 DRD Core Support"
        depends on USB || USB_GADGET
+       depends on HAS_IOMEM
        help
          Say Y here if your system has a Dual Role Hi-Speed USB
          controller based on the DesignWare HSOTG IP Core.