diff options
author | Michal Nazarewicz <m.nazarewicz@samsung.com> | 2010-08-12 11:43:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:21:25 -0400 |
commit | 07a18bd716ed5dea336429404b132568cfaaef95 (patch) | |
tree | 1ff7719e2e0e022cff3ed420bc1c332662a1a48c /drivers/usb/gadget/cdc2.c | |
parent | b0fca50f5a94a268ed02cfddf44448051ed9343f (diff) |
usb gadget: don't save bind callback in struct usb_composite_driver
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 composite driver structure.
This fixes many section mismatches reported by modpost.
Signed-off-by: Michał Nazarewicz <m.nazarewicz@samsung.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/cdc2.c')
-rw-r--r-- | drivers/usb/gadget/cdc2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/gadget/cdc2.c b/drivers/usb/gadget/cdc2.c index 928137d3dbdc..1f2a9b1e4f2d 100644 --- a/drivers/usb/gadget/cdc2.c +++ b/drivers/usb/gadget/cdc2.c | |||
@@ -245,7 +245,6 @@ static struct usb_composite_driver cdc_driver = { | |||
245 | .name = "g_cdc", | 245 | .name = "g_cdc", |
246 | .dev = &device_desc, | 246 | .dev = &device_desc, |
247 | .strings = dev_strings, | 247 | .strings = dev_strings, |
248 | .bind = cdc_bind, | ||
249 | .unbind = __exit_p(cdc_unbind), | 248 | .unbind = __exit_p(cdc_unbind), |
250 | }; | 249 | }; |
251 | 250 | ||
@@ -255,7 +254,7 @@ MODULE_LICENSE("GPL"); | |||
255 | 254 | ||
256 | static int __init init(void) | 255 | static int __init init(void) |
257 | { | 256 | { |
258 | return usb_composite_register(&cdc_driver); | 257 | return usb_composite_probe(&cdc_driver, cdc_bind); |
259 | } | 258 | } |
260 | module_init(init); | 259 | module_init(init); |
261 | 260 | ||