Re[2]: [PATCH] ARM: pcm038: Avoid warning if gadget support not compiled in

Alexander Shiyan shc_work at mail.ru
Tue Jun 11 11:54:23 EDT 2013


> On Sun, Jun 09, 2013 at 02:22:41PM +0400, Alexander Shiyan wrote:
> > 
> > Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
> > ---
> >  arch/arm/boards/pcm038/pcm038.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c
> > index 49677c2..dec5164 100644
> > --- a/arch/arm/boards/pcm038/pcm038.c
> > +++ b/arch/arm/boards/pcm038/pcm038.c
> > @@ -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);
> 
> What warning do you get without this patch?

Runtime warning "No supported role" from chipidea driver.

---


More information about the barebox mailing list