diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-08-12 11:43:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:21:26 -0400 |
commit | c9bfff9c98671ad50e4abbfe1ab606a9957f7539 (patch) | |
tree | 68ca78391c78bde1a82000e34eec70866f5c956e /drivers/usb/gadget/serial.c | |
parent | 07a18bd716ed5dea336429404b132568cfaaef95 (diff) |
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>
Diffstat (limited to 'drivers/usb/gadget/serial.c')
-rw-r--r-- | drivers/usb/gadget/serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/serial.c b/drivers/usb/gadget/serial.c index 0b81d7b741d1..1ac57a973aa9 100644 --- a/drivers/usb/gadget/serial.c +++ b/drivers/usb/gadget/serial.c | |||
@@ -155,7 +155,6 @@ static int __init serial_bind_config(struct usb_configuration *c) | |||
155 | 155 | ||
156 | static struct usb_configuration serial_config_driver = { | 156 | static struct usb_configuration serial_config_driver = { |
157 | /* .label = f(use_acm) */ | 157 | /* .label = f(use_acm) */ |
158 | .bind = serial_bind_config, | ||
159 | /* .bConfigurationValue = f(use_acm) */ | 158 | /* .bConfigurationValue = f(use_acm) */ |
160 | /* .iConfiguration = DYNAMIC */ | 159 | /* .iConfiguration = DYNAMIC */ |
161 | .bmAttributes = USB_CONFIG_ATT_SELFPOWER, | 160 | .bmAttributes = USB_CONFIG_ATT_SELFPOWER, |
@@ -225,7 +224,8 @@ static int __init gs_bind(struct usb_composite_dev *cdev) | |||
225 | } | 224 | } |
226 | 225 | ||
227 | /* register our configuration */ | 226 | /* register our configuration */ |
228 | status = usb_add_config(cdev, &serial_config_driver); | 227 | status = usb_add_config(cdev, &serial_config_driver, |
228 | serial_bind_config); | ||
229 | if (status < 0) | 229 | if (status < 0) |
230 | goto fail; | 230 | goto fail; |
231 | 231 | ||