summaryrefslogtreecommitdiffstats
path: root/drivers/firewire/ohci.c
diff options
context:
space:
mode:
authorNémeth Márton2010-01-10 13:14:26 +0100
committerStefan Richter2010-01-10 17:04:19 +0100
commita67483d2be12dfc5563c09e6169bec9a88f434b0 (patch)
treefc9988664bd6b969103cea2543a4416774aebf12 /drivers/firewire/ohci.c
parentfirewire: qualify config ROM cache pointers as const pointers (diff)
downloadkernel-qcow2-linux-a67483d2be12dfc5563c09e6169bec9a88f434b0.tar.gz
kernel-qcow2-linux-a67483d2be12dfc5563c09e6169bec9a88f434b0.tar.xz
kernel-qcow2-linux-a67483d2be12dfc5563c09e6169bec9a88f434b0.zip
firewire: make PCI device id constant
The id_table field of the struct pci_driver is constant in <linux/pci.h> so it is worth to make pci_table also constant. Found with Coccinelle. Signed-off-by: Márton Németh <nm127@freemail.hu> Cc: Julia Lawall <julia@diku.dk> Cc: cocci@diku.dk Signed-off-by: Stefan Richter stefanr@s5r6.in-berlin.de> (changelog)
Diffstat (limited to 'drivers/firewire/ohci.c')
-rw-r--r--drivers/firewire/ohci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c
index a61571c63c59..6610d2d38802 100644
--- a/drivers/firewire/ohci.c
+++ b/drivers/firewire/ohci.c
@@ -2657,7 +2657,7 @@ static int pci_resume(struct pci_dev *dev)
}
#endif
-static struct pci_device_id pci_table[] = {
+static const struct pci_device_id pci_table[] = {
{ PCI_DEVICE_CLASS(PCI_CLASS_SERIAL_FIREWIRE_OHCI, ~0) },
{ }
};