diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-09-06 14:11:03 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-09-10 08:34:24 -0400 |
commit | c2ec75c25112c9e0d9053f55ba8cf0a358d4a354 (patch) | |
tree | f72a74051893780424654d33c94664496765ee1d /drivers/usb/gadget/hid.c | |
parent | 1e1a27c3258c769ea175780bb28d0c8fead79ff8 (diff) |
usb: gadget: push all usb_composite_driver structs into __refdata
As it turns out, Sam's comment was better than I initially assumed. This
patch pushes as struct usb_composite_driver data structures into
__refdata section to avoid a section missmatch report from modpost
because the ->bind() can be marked __init. The only downside is that
modpost does not check between ->bind() and other member. However, it is
temporary.
Cc: Sam Ravnborg <sam@ravnborg.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>
Diffstat (limited to 'drivers/usb/gadget/hid.c')
-rw-r--r-- | drivers/usb/gadget/hid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/hid.c b/drivers/usb/gadget/hid.c index 3493adf064f5..34e139e700b4 100644 --- a/drivers/usb/gadget/hid.c +++ b/drivers/usb/gadget/hid.c | |||
@@ -242,7 +242,7 @@ static int __devexit hidg_plat_driver_remove(struct platform_device *pdev) | |||
242 | /****************************** Some noise ******************************/ | 242 | /****************************** Some noise ******************************/ |
243 | 243 | ||
244 | 244 | ||
245 | static struct usb_composite_driver hidg_driver = { | 245 | static __refdata struct usb_composite_driver hidg_driver = { |
246 | .name = "g_hid", | 246 | .name = "g_hid", |
247 | .dev = &device_desc, | 247 | .dev = &device_desc, |
248 | .strings = dev_strings, | 248 | .strings = dev_strings, |