From: Németh Márton Date: Sun, 10 Jan 2010 12:14:26 +0000 (+0100) Subject: firewire: make PCI device id constant X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a67483d2be12dfc5563c09e6169bec9a88f434b0;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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) --- diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index a61571c63c5..6610d2d3880 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) }, { } };