diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-08-07 15:47:29 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-10 16:27:51 -0400 |
commit | d15684228a1f82555fcd3c5fcd86a0884bad29e3 (patch) | |
tree | 1c2a94030bcd8a6059d8bbb871296f8e7fc4bcb6 /drivers/misc/pti.c | |
parent | 86176ed905454e568539c77e0cba5759085830bb (diff) |
misc: pti, add const to pci_device_id table
It is annotated as __devinitconst. Despite the annotation is useless
in most cases, const keyword is misssing there. So we are placing
non-const data into rodata section. Fix that now.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: J Freyensee <james_p_freyensee@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/pti.c')
-rw-r--r-- | drivers/misc/pti.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c index b7eb545394b1..5cb61f7e6f8a 100644 --- a/drivers/misc/pti.c +++ b/drivers/misc/pti.c | |||
@@ -76,7 +76,7 @@ struct pti_dev { | |||
76 | */ | 76 | */ |
77 | static DEFINE_MUTEX(alloclock); | 77 | static DEFINE_MUTEX(alloclock); |
78 | 78 | ||
79 | static struct pci_device_id pci_ids[] __devinitconst = { | 79 | static const struct pci_device_id pci_ids[] __devinitconst = { |
80 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x82B)}, | 80 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x82B)}, |
81 | {0} | 81 | {0} |
82 | }; | 82 | }; |