usb: gadget: fix pxa25x compilation problems

Message ID
State Accepted
Commit b144e4ab1ef130e8bf30bcd3e529b7f35112c503
Headers show

Commit Message

Linus Walleij Nov. 18, 2013, 10:37 a.m.
In commit
"ARM: pxa: delete the custom GPIO header"
we removed the implicit inclusion of <mach/gpio.h>
from <linux/gpio.h>.

The pxa25x_udc was not using that, but it was relying
on <linux/gpio.h> to implictly include <mach/gpio.h>
which in turn implicitly included <mach/hardware.h>,
which was needed for the driver to compile.

Fix this up by explicitly including the necessary
<mach/hardware.h> header.

Reported-by: Russell King <>
Signed-off-by: Linus Walleij <>
 drivers/usb/gadget/pxa25x_udc.c | 1 +
 1 file changed, 1 insertion(+)


diff --git a/drivers/usb/gadget/pxa25x_udc.c b/drivers/usb/gadget/pxa25x_udc.c
index 0ac6064aa3b8..409a3c45a36a 100644
--- a/drivers/usb/gadget/pxa25x_udc.c
+++ b/drivers/usb/gadget/pxa25x_udc.c
@@ -54,6 +54,7 @@ 
 #include <mach/pxa25x-udc.h>
+#include <mach/hardware.h>