]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.0.43/usb-spca506-remove-__devinit-from-the-struct.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.0.43 / usb-spca506-remove-__devinit-from-the-struct.patch
1 From e694d518886c7afedcdd1732477832b2e32744e4 Mon Sep 17 00:00:00 2001
2 From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3 Date: Fri, 17 Aug 2012 17:48:27 -0700
4 Subject: USB: spca506: remove __devinit* from the struct usb_device_id table
5
6 From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7
8 commit e694d518886c7afedcdd1732477832b2e32744e4 upstream.
9
10 This structure needs to always stick around, even if CONFIG_HOTPLUG
11 is disabled, otherwise we can oops when trying to probe a device that
12 was added after the structure is thrown away.
13
14 Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.
15
16 Reported-by: Fengguang Wu <fengguang.wu@intel.com>
17 Reported-by: Bjørn Mork <bjorn@mork.no>
18 CC: Hans de Goede <hdegoede@redhat.com>
19 CC: Mauro Carvalho Chehab <mchehab@infradead.org>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21
22 ---
23 drivers/media/video/gspca/spca506.c | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26 --- a/drivers/media/video/gspca/spca506.c
27 +++ b/drivers/media/video/gspca/spca506.c
28 @@ -685,7 +685,7 @@ static const struct sd_desc sd_desc = {
29 };
30
31 /* -- module initialisation -- */
32 -static const struct usb_device_id device_table[] __devinitconst = {
33 +static const struct usb_device_id device_table[] = {
34 {USB_DEVICE(0x06e1, 0xa190)},
35 /*fixme: may be IntelPCCameraPro BRIDGE_SPCA505
36 {USB_DEVICE(0x0733, 0x0430)}, */