Commit 7562b75b authored by Vegard Nossum's avatar Vegard Nossum Committed by Greg Kroah-Hartman
Browse files

usb: add HAS_IOMEM dependency to USB_NET2272



drivers/usb/gadget/udc/net2272.c: In function ‘net2272_remove’:
drivers/usb/gadget/udc/net2272.c:2232:2: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]
  iounmap(dev->base_addr);
  ^
drivers/usb/gadget/udc/net2272.c: In function ‘net2272_plat_probe’:
drivers/usb/gadget/udc/net2272.c:2650:2: error: implicit declaration of function ‘ioremap_nocache’ [-Werror=implicit-function-declaration]
  dev->base_addr = ioremap_nocache(base, len);
  ^
drivers/usb/gadget/udc/net2272.c:2650:17: warning: assignment makes pointer from integer without a cast [enabled by default]
  dev->base_addr = ioremap_nocache(base, len);
                 ^

Signed-off-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ca23d3b7
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -287,6 +287,7 @@ config USB_FSL_QE
	   dynamically linked module called "fsl_qe_udc".
	   dynamically linked module called "fsl_qe_udc".


config USB_NET2272
config USB_NET2272
	depends on HAS_IOMEM
	tristate "PLX NET2272"
	tristate "PLX NET2272"
	help
	help
	  PLX NET2272 is a USB peripheral controller which supports
	  PLX NET2272 is a USB peripheral controller which supports