mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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: Fengguang Wu <[email protected]> Reported-by: Bjørn Mork <[email protected]> Cc: stable <[email protected]> CC: Mauro Carvalho Chehab <[email protected]> CC: Michael Krufky <[email protected]> CC: Paul Gortmaker <[email protected]> CC: Doron Cohen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
731879f8e3
commit
d04dbd1c0e
1 changed files with 1 additions and 1 deletions
|
|
@ -481,7 +481,7 @@ static int smsusb_resume(struct usb_interface *intf)
|
|||
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),
|
||||
.driver_info = SMS1XXX_BOARD_SIANO_STELLAR },
|
||||
{ USB_DEVICE(0x187f, 0x0100),
|
||||
|
|
|
|||
Loading…
Reference in a new issue