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

ARM: at91: Fix USB AT91 gadget registration

Since 193ab2a6070039e7ee2b9b9bebea754a7c52fd1b, various AT91 boards don't
register at91_udc anymore due to depending on a now non-existing symbol.
Fix the symbol name.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: stable <stable@vger.kernel.org>

authored by

Anders Darander and committed by
Nicolas Ferre
0e934e22 1808958d

+4 -4
+1 -1
arch/arm/mach-at91/at91rm9200_devices.c
··· 83 83 * USB Device (Gadget) 84 84 * -------------------------------------------------------------------- */ 85 85 86 - #ifdef CONFIG_USB_GADGET_AT91 86 + #ifdef CONFIG_USB_AT91 87 87 static struct at91_udc_data udc_data; 88 88 89 89 static struct resource udc_resources[] = {
+1 -1
arch/arm/mach-at91/at91sam9260_devices.c
··· 84 84 * USB Device (Gadget) 85 85 * -------------------------------------------------------------------- */ 86 86 87 - #ifdef CONFIG_USB_GADGET_AT91 87 + #ifdef CONFIG_USB_AT91 88 88 static struct at91_udc_data udc_data; 89 89 90 90 static struct resource udc_resources[] = {
+1 -1
arch/arm/mach-at91/at91sam9261_devices.c
··· 87 87 * USB Device (Gadget) 88 88 * -------------------------------------------------------------------- */ 89 89 90 - #ifdef CONFIG_USB_GADGET_AT91 90 + #ifdef CONFIG_USB_AT91 91 91 static struct at91_udc_data udc_data; 92 92 93 93 static struct resource udc_resources[] = {
+1 -1
arch/arm/mach-at91/at91sam9263_devices.c
··· 92 92 * USB Device (Gadget) 93 93 * -------------------------------------------------------------------- */ 94 94 95 - #ifdef CONFIG_USB_GADGET_AT91 95 + #ifdef CONFIG_USB_AT91 96 96 static struct at91_udc_data udc_data; 97 97 98 98 static struct resource udc_resources[] = {