ARM: pcm038: Avoid warning if gadget support not compiled in
Without this patch the chipidea driver reports 'No supported role' during runtime. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
6d12ca692b
commit
bd5092f925
|
@ -328,7 +328,8 @@ static int pcm038_devices_init(void)
|
|||
mdelay(1);
|
||||
imx_gpio_mode(PE1_PF_USBOTG_STP);
|
||||
|
||||
imx27_add_usbotg(&pcm038_otg_pdata);
|
||||
if (IS_ENABLED(CONFIG_USB_GADGET_DRIVER_ARC))
|
||||
imx27_add_usbotg(&pcm038_otg_pdata);
|
||||
|
||||
switch (bootsource_get()) {
|
||||
case BOOTSOURCE_NAND:
|
||||
|
|
Loading…
Reference in New Issue