Skip to content

Commit

Permalink
firewire: make PCI device id constant
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Németh Márton authored and Stefan Richter committed Jan 10, 2010
1 parent 13b302d commit a67483d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firewire/ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) },
{ }
};
Expand Down

0 comments on commit a67483d

Please sign in to comment.