9
0
Fork 0

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:
Alexander Shiyan 2013-06-09 14:22:41 +04:00 committed by Sascha Hauer
parent 6d12ca692b
commit bd5092f925
1 changed files with 2 additions and 1 deletions

View File

@ -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: