From: Uwe Kleine-König Date: Thu, 12 Aug 2010 15:43:53 +0000 (+0200) Subject: usb gadget: don't save bind callback in struct usb_gadget_driver X-Git-Tag: v2.6.37-rc1~154^2~121 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0fca50f5a94a268ed02cfddf44448051ed9343f;p=pandora-kernel.git usb gadget: don't save bind callback in struct usb_gadget_driver To accomplish this the function to register a gadget driver takes the bind function as a second argument. To make things clearer rename the function to resemble platform_driver_probe. This fixes many section mismatches like WARNING: drivers/usb/gadget/g_printer.o(.data+0xc): Section mismatch in reference from the variable printer_driver to the function .init.text:printer_bind() The variable printer_driver references the function __init printer_bind() All callers are fixed. Signed-off-by: Uwe Kleine-König [m.nazarewicz@samsung.com: added dbgp] Signed-off-by: Michał Nazarewicz Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed