Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: gadget: pxa25x_udc: use correct header for gpio devm_ functions

commit c63d2225e7be ("usb: gadget: pxa25x_udc: use devm_ functions")
introduced the use of devm_gpio_request in this driver, but did not
correctly include the header file declaring this function, which
causes a build failure.

This changes pxa25x_udc to include linux/gpio.h instead of asm/gpio.h
to fix this.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Himangi Saraogi <himangi774@gmail.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Arnd Bergmann and committed by
Felipe Balbi
56e5cea9 dfb87b8b

+1 -1
+1 -1
drivers/usb/gadget/pxa25x_udc.c
··· 16 16 /* #define VERBOSE_DEBUG */ 17 17 18 18 #include <linux/device.h> 19 + #include <linux/gpio.h> 19 20 #include <linux/module.h> 20 21 #include <linux/kernel.h> 21 22 #include <linux/ioport.h> ··· 41 40 42 41 #include <asm/byteorder.h> 43 42 #include <asm/dma.h> 44 - #include <asm/gpio.h> 45 43 #include <asm/mach-types.h> 46 44 #include <asm/unaligned.h> 47 45