Date: Sun, 10 Jan 2010 13:14:26 +0100 From: =?UTF-8?B?TsOpbWV0aCBNw6FydG9u?= Subject: firewire: make PCI device id constant The id_table field of the struct pci_driver is constant in so it is worth to make pci_table also constant. Found with Coccinelle. Signed-off-by: Márton Németh Cc: Julia Lawall Cc: cocci@diku.dk Signed-off-by: Stefan Richter stefanr@s5r6.in-berlin.de> (changelog) --- drivers/firewire/ohci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.33-rc3/drivers/firewire/ohci.c =================================================================== --- linux-2.6.33-rc3.orig/drivers/firewire/ohci.c +++ linux-2.6.33-rc3/drivers/firewire/ohci.c @@ -2657,7 +2657,7 @@ static int pci_resume(struct pci_dev *de } #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) }, { } };