usb gadget: don't save bind callback in struct usb_configuration
The bind function is most of the time only called at init time so there is no need to save a pointer to it in the configuration structure. This fixes many section mismatches reported by modpost. Signed-off-by:Uwe Kleine-König <u.kleine-koenig@pengutronix.de> [m.nazarewicz@samsung.com: updated for -next] Signed-off-by:
Michał Nazarewicz <m.nazarewicz@samsung.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
Showing
- drivers/usb/gadget/audio.c 1 addition, 2 deletionsdrivers/usb/gadget/audio.c
- drivers/usb/gadget/cdc2.c 1 addition, 2 deletionsdrivers/usb/gadget/cdc2.c
- drivers/usb/gadget/composite.c 8 additions, 6 deletionsdrivers/usb/gadget/composite.c
- drivers/usb/gadget/ether.c 3 additions, 4 deletionsdrivers/usb/gadget/ether.c
- drivers/usb/gadget/f_loopback.c 1 addition, 2 deletionsdrivers/usb/gadget/f_loopback.c
- drivers/usb/gadget/f_sourcesink.c 1 addition, 2 deletionsdrivers/usb/gadget/f_sourcesink.c
- drivers/usb/gadget/g_ffs.c 1 addition, 2 deletionsdrivers/usb/gadget/g_ffs.c
- drivers/usb/gadget/hid.c 1 addition, 2 deletionsdrivers/usb/gadget/hid.c
- drivers/usb/gadget/mass_storage.c 1 addition, 2 deletionsdrivers/usb/gadget/mass_storage.c
- drivers/usb/gadget/multi.c 4 additions, 6 deletionsdrivers/usb/gadget/multi.c
- drivers/usb/gadget/nokia.c 4 additions, 4 deletionsdrivers/usb/gadget/nokia.c
- drivers/usb/gadget/serial.c 2 additions, 2 deletionsdrivers/usb/gadget/serial.c
- drivers/usb/gadget/webcam.c 2 additions, 2 deletionsdrivers/usb/gadget/webcam.c
- include/linux/usb/composite.h 3 additions, 5 deletionsinclude/linux/usb/composite.h
Loading
Please register or sign in to comment