Commit d04dbd1c authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: smsusb: remove __devinit* from the struct usb_device_id table

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Reported-by: default avatarBjørn Mork <bjorn@mork.no>
Cc: stable <stable@vger.kernel.org>
CC: Mauro Carvalho Chehab <mchehab@infradead.org>
CC: Michael Krufky <mkrufky@linuxtv.org>
CC: Paul Gortmaker <paul.gortmaker@windriver.com>
CC: Doron Cohen <doronc@siano-ms.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 731879f8
...@@ -481,7 +481,7 @@ static int smsusb_resume(struct usb_interface *intf) ...@@ -481,7 +481,7 @@ static int smsusb_resume(struct usb_interface *intf)
return 0; return 0;
} }
static const struct usb_device_id smsusb_id_table[] __devinitconst = { static const struct usb_device_id smsusb_id_table[] = {
{ USB_DEVICE(0x187f, 0x0010), { USB_DEVICE(0x187f, 0x0010),
.driver_info = SMS1XXX_BOARD_SIANO_STELLAR }, .driver_info = SMS1XXX_BOARD_SIANO_STELLAR },
{ USB_DEVICE(0x187f, 0x0100), { USB_DEVICE(0x187f, 0x0100),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment