On Thu, Mar 07, 2013 at 12:23:25AM +0200, Aaro Koskinen wrote: > omap_udc platform device is not registered properly anymore: > CONFIG_USB_GADGET_OMAP was deleted by 193ab2a6 (usb: gadget: allow > multiple gadgets to be built) already in v3.1. > > Fix by using CONFIG_USB_OMAP instead. Tested on Nokia 770 by checking > that omap_udc is probed & working properly when built as a module. > > Signed-off-by: Aaro Koskinen <aaro.koskinen@xxxxxx> > --- > arch/arm/mach-omap1/include/mach/usb.h | 2 +- > arch/arm/mach-omap1/usb.c | 6 +++--- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/mach-omap1/include/mach/usb.h b/arch/arm/mach-omap1/include/mach/usb.h > index 753cd5c..8b2150e 100644 > --- a/arch/arm/mach-omap1/include/mach/usb.h > +++ b/arch/arm/mach-omap1/include/mach/usb.h > @@ -2,7 +2,7 @@ > * FIXME correct answer depends on hmc_mode, > * as does (on omap1) any nonzero value for config->otg port number > */ > -#ifdef CONFIG_USB_GADGET_OMAP > +#if defined(CONFIG_USB_OMAP) || defined(CONFIG_USB_OMAP_MODULE) could use IS_ENABLED() -- balbi
Attachment:
signature.asc
Description: Digital signature