Hi, On Tue, Jun 21, 2011 at 05:20:25PM +0530, Praveen Paneri wrote: > > > @@ -37,7 +39,12 @@ static struct resource s3c_usb_hsotg_resources[] = { > > > static u64 s3c_hsotg_dmamask = DMA_BIT_MASK(32); > > > > > > struct platform_device s3c_device_usb_hsotg = { > > > +#ifdef CONFIG_S3C_DEV_USB_HSOTG > > > .name = "s3c-hsotg", > > > +#endif > > > +#ifdef CONFIG_S3C_DEV_DWC_OTG > > > + .name = "dwc_otg", > > > +#endif > > > > no, don't do that. See we're going through a big re-factor on the gadget > > framework to allow multiple UDC drivers to be compiled as modules. The > > idea is to be able to have distro-like kernels for embedded too. > It can be build as a module but need to make necessary modifications in > platform code. Will modify according to the gadget framework. can't you do runtime detection of which platform you're running on ? Then you add one or the other platform_device. But ifdeferry won't help you in the long run. -- balbi
Attachment:
signature.asc
Description: Digital signature