Re: [PATCH 2/9] scripts/modpost: add a exception for USB gadget drivers

2012-08-17 Thread Sebastian Andrzej Siewior
On 08/15/2012 10:14 PM, Sam Ravnborg wrote: Could you use the __ref / __refdata annotation? This would be much cleaner than this hack in modpost. Hmmm. $ git grep " __init " drivers/usb/gadget/ | grep -vE '[_-]udc\.c|net22..\.c|udc-core\.c|dummy_hcd' | wc -l 71 That is the number of annotat

Re: [PATCH 2/9] scripts/modpost: add a exception for USB gadget drivers

2012-08-16 Thread ABRAHAM, KISHON VIJAY
On Thu, Aug 16, 2012 at 6:33 PM, Felipe Balbi wrote: > On Thu, Aug 16, 2012 at 06:35:07PM +0530, ABRAHAM, KISHON VIJAY wrote: >> Hi Sebastian, >> >> On Thu, Aug 16, 2012 at 1:29 AM, Sebastian Andrzej Siewior >> wrote: >> > The "driver" struct for a gadget driver is named *_driver. On module >> >

Re: [PATCH 2/9] scripts/modpost: add a exception for USB gadget drivers

2012-08-16 Thread Felipe Balbi
On Thu, Aug 16, 2012 at 06:35:07PM +0530, ABRAHAM, KISHON VIJAY wrote: > Hi Sebastian, > > On Thu, Aug 16, 2012 at 1:29 AM, Sebastian Andrzej Siewior > wrote: > > The "driver" struct for a gadget driver is named *_driver. On module > > load, the gadget expects a UDC driver to be loaded and avaiab

Re: [PATCH 2/9] scripts/modpost: add a exception for USB gadget drivers

2012-08-16 Thread ABRAHAM, KISHON VIJAY
Hi Sebastian, On Thu, Aug 16, 2012 at 1:29 AM, Sebastian Andrzej Siewior wrote: > The "driver" struct for a gadget driver is named *_driver. On module > load, the gadget expects a UDC driver to be loaded and avaiable. If this > is not the case => -ENODEV and bye bye. That means that the gadget Wi

Re: [PATCH 2/9] scripts/modpost: add a exception for USB gadget drivers

2012-08-15 Thread Sam Ravnborg
On Wed, Aug 15, 2012 at 09:59:12PM +0200, Sebastian Andrzej Siewior wrote: > The "driver" struct for a gadget driver is named *_driver. On module > load, the gadget expects a UDC driver to be loaded and avaiable. If this > is not the case => -ENODEV and bye bye. That means that the gadget > driver

[PATCH 2/9] scripts/modpost: add a exception for USB gadget drivers

2012-08-15 Thread Sebastian Andrzej Siewior
The "driver" struct for a gadget driver is named *_driver. On module load, the gadget expects a UDC driver to be loaded and avaiable. If this is not the case => -ENODEV and bye bye. That means that the gadget driver is initialized immediately. The initialization process includes calling ->bind() fo