usb: gadget: move bind() callback back to struct usb_composite_driver
This partly reverts 07a18bd7
("usb gadget: don't save bind callback in
struct usb_composite_driver") and fixes new drivers. The section missmatch
problems was solved by whitelisting structs in question via __ref.
Cc: devel@driverdev.osuosl.org
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:

committed by
Felipe Balbi

parent
c2ec75c251
commit
03e42bd593
@@ -339,6 +339,7 @@ static __refdata struct usb_composite_driver zero_driver = {
|
||||
.dev = &device_desc,
|
||||
.strings = dev_strings,
|
||||
.max_speed = USB_SPEED_SUPER,
|
||||
.bind = zero_bind,
|
||||
.unbind = zero_unbind,
|
||||
.suspend = zero_suspend,
|
||||
.resume = zero_resume,
|
||||
@@ -349,7 +350,7 @@ MODULE_LICENSE("GPL");
|
||||
|
||||
static int __init init(void)
|
||||
{
|
||||
return usb_composite_probe(&zero_driver, zero_bind);
|
||||
return usb_composite_probe(&zero_driver);
|
||||
}
|
||||
module_init(init);
|
||||
|
||||
|
Reference in New Issue
Block a user