Skip to content

Commit

Permalink
USB: emi62: remove __devinit* from the struct usb_device_id table
Browse files Browse the repository at this point in the history
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 <fengguang.wu@intel.com>
Reported-by: Bjørn Mork <bjorn@mork.no>
Cc: stable <stable@vger.kernel.org>
CC: Paul Gortmaker <paul.gortmaker@windriver.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Aug 18, 2012
1 parent 43a3469 commit 83957df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/misc/emi62.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static int emi62_load_firmware (struct usb_device *dev)
return err;
}

static const struct usb_device_id id_table[] __devinitconst = {
static const struct usb_device_id id_table[] = {
{ USB_DEVICE(EMI62_VENDOR_ID, EMI62_PRODUCT_ID) },
{ } /* Terminating entry */
};
Expand Down

0 comments on commit 83957df

Please sign in to comment.