projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13b302d
)
firewire: make PCI device id constant
author
Németh Márton
<
[email protected]
>
Sun, 10 Jan 2010 12:14:26 +0000
(13:14 +0100)
committer
Stefan Richter
<
[email protected]
>
Sun, 10 Jan 2010 16:04:19 +0000
(17:04 +0100)
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 <
[email protected]
>
Cc: Julia Lawall <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Stefan Richter
[email protected]
> (changelog)
drivers/firewire/ohci.c
patch
|
blob
|
history
diff --git
a/drivers/firewire/ohci.c
b/drivers/firewire/ohci.c
index a61571c63c595161f1aceb004a3d99677971b403..6610d2d38802183e977e98c87a4fa70006d94fdc 100644
(file)
--- 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) },
{ }
};