]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ARM: pxa: hx4700: fix the usb client
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sat, 26 May 2018 09:38:34 +0000 (11:38 +0200)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Wed, 20 Jun 2018 20:21:03 +0000 (22:21 +0200)
The usb client of the hx4700 is not working because no platform data is
declared. Fix it by adding the missing call.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/hx4700.c

index e2e7f247a6456746f6fb3773c4798c512d3b27e4..b79b757fdd413e5d6754a67d20007b345da7067b 100644 (file)
@@ -54,6 +54,7 @@
 
 #include "devices.h"
 #include "generic.h"
+#include "udc.h"
 
 /* Physical address space information */
 
@@ -594,6 +595,8 @@ static struct platform_device gpio_vbus = {
        },
 };
 
+static struct pxa2xx_udc_mach_info hx4700_udc_info;
+
 /*
  * Touchscreen - TSC2046 connected to SSP2
  */
@@ -891,6 +894,7 @@ static void __init hx4700_init(void)
        gpio_set_value(GPIO71_HX4700_ASIC3_nRESET, 1);
        mdelay(10);
 
+       pxa_set_udc_info(&hx4700_udc_info);
        regulator_has_full_constraints();
 }