Skip to content

Commit eb2f4fb

Browse files
committed
USB: winbond: remove __devinit* from the struct usb_device_id table
commit 43a3469 upstream. 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: Pavel Machek <[email protected]> CC: Paul Gortmaker <[email protected]> CC: "John W. Linville" <[email protected]> CC: Eliad Peller <[email protected]> CC: Devendra Naga <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4f7da69 commit eb2f4fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/winbond/wbusb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ MODULE_DESCRIPTION("IS89C35 802.11bg WLAN USB Driver");
2424
MODULE_LICENSE("GPL");
2525
MODULE_VERSION("0.1");
2626

27-
static const struct usb_device_id wb35_table[] __devinitconst = {
27+
static const struct usb_device_id wb35_table[] = {
2828
{ USB_DEVICE(0x0416, 0x0035) },
2929
{ USB_DEVICE(0x18E8, 0x6201) },
3030
{ USB_DEVICE(0x18E8, 0x6206) },

0 commit comments

Comments
 (0)