USB: jl2005bcd: remove __devinit* from the struct usb_device_id table
authorGreg Kroah-Hartman <[email protected]>
Sat, 18 Aug 2012 00:48:27 +0000 (17:48 -0700)
committerGreg Kroah-Hartman <[email protected]>
Sat, 18 Aug 2012 00:50:44 +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: Hans de Goede <[email protected]>
CC: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/media/video/gspca/jl2005bcd.c

index cf9d9fca5b84005cd37e24cba853c9d132e504be..234777116e5fc5e8cc25a6f4e1940feca8a31412 100644 (file)
@@ -512,7 +512,7 @@ static const struct sd_desc sd_desc = {
 };
 
 /* -- module initialisation -- */
-static const __devinitdata struct usb_device_id device_table[] = {
+static const struct usb_device_id device_table[] = {
        {USB_DEVICE(0x0979, 0x0227)},
        {}
 };