On Fri, 30 Jul 2010 16:49:14 +0200, Uwe Kleine-König <u.kleine-koe...@pengutronix.de> wrote:
by using usb_gadget_probe_driver with driver->bind = NULL. When all drivers are fixed to use the new function the bind member of struct usb_gadget_driver can go away.
On second thought, would it be hard to just fix all the gadgets? It's not like there are thousands of them so it shouldn't take that long. Moreover, since you'd remove the bind field and change the prototype of the usb_gadget_register() all instances would be found at compile time. With that and the other functions which use bind callbacks (usb_add_configuration(), usb_composite_register()) the patch would be much better in my opinion and also much better then my approach with __ref. -- Best regards, _ _ | Humble Liege of Serenely Enlightened Majesty of o' \,=./ `o | Computer Science, Michał "mina86" Nazarewicz (o o) +----[mina86*mina86.com]---[mina86*jabber.org]----ooO--(_)--Ooo-- _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev