USB: vt6656: remove __devinit* from the struct usb_device_id table
authorGreg Kroah-Hartman <[email protected]>
Sat, 18 Aug 2012 00:48:33 +0000 (17:48 -0700)
committerGreg Kroah-Hartman <[email protected]>
Sat, 18 Aug 2012 00:50:45 +0000 (17:50 -0700)
This structure needs to always stick around, even if CONFIG_HOTPLUG
is disabled, otherwise we can oops when trying to probe a device that
was added after the structure is thrown away.

Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

Reported-by: Fengguang Wu <[email protected]>
Reported-by: Bjørn Mork <[email protected]>
Cc: stable <[email protected]>
CC: Forest Bond <[email protected]>
CC: Marcos Paulo de Souza <[email protected]>
CC: "David S. Miller" <[email protected]>
CC: Jesper Juhl <[email protected]>
CC: Jiri Pirko <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/staging/vt6656/main_usb.c

index b06fd5b723fa5cb693fd860c43e9232395c57bad..d536756549e684479ac067e5b2caea8832245e9e 100644 (file)
@@ -189,7 +189,7 @@ DEVICE_PARAM(b80211hEnable, "802.11h mode");
 // Static vars definitions
 //
 
-static struct usb_device_id vt6656_table[] __devinitdata = {
+static struct usb_device_id vt6656_table[] = {
        {USB_DEVICE(VNT_USB_VENDOR_ID, VNT_USB_PRODUCT_ID)},
        {}
 };