aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCesar Eduardo Barros <cesarb@cesarb.net>2009-01-14 23:34:04 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-21 17:03:41 -0500
commit5ec99fdf8e1a6ee90fce22c2fce94871ab44e8ba (patch)
tree9c2aac1ebfa017b0b02c35a38754403fa2622e94
parentf08d7c36ccde73ea098dfda8ab63540978e9beb5 (diff)
sc92031: use device id directly instead of made-up name
Instead of making up a name for the device ids, put them directly in the device id table. Also move the vendor id to pci_ids.h. Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/sc92031.c8
-rw-r--r--include/linux/pci_ids.h2
2 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/sc92031.c b/drivers/net/sc92031.c
index d24acdcdb157..00dfddbf2f9b 100644
--- a/drivers/net/sc92031.c
+++ b/drivers/net/sc92031.c
@@ -31,10 +31,6 @@
31 31
32#include <asm/irq.h> 32#include <asm/irq.h>
33 33
34#define PCI_VENDOR_ID_SILAN 0x1904
35#define PCI_DEVICE_ID_SILAN_SC92031 0x2031
36#define PCI_DEVICE_ID_SILAN_8139D 0x8139
37
38#define SC92031_NAME "sc92031" 34#define SC92031_NAME "sc92031"
39 35
40/* BAR 0 is MMIO, BAR 1 is PIO */ 36/* BAR 0 is MMIO, BAR 1 is PIO */
@@ -1592,8 +1588,8 @@ out:
1592} 1588}
1593 1589
1594static struct pci_device_id sc92031_pci_device_id_table[] __devinitdata = { 1590static struct pci_device_id sc92031_pci_device_id_table[] __devinitdata = {
1595 { PCI_DEVICE(PCI_VENDOR_ID_SILAN, PCI_DEVICE_ID_SILAN_SC92031) }, 1591 { PCI_DEVICE(PCI_VENDOR_ID_SILAN, 0x2031) },
1596 { PCI_DEVICE(PCI_VENDOR_ID_SILAN, PCI_DEVICE_ID_SILAN_8139D) }, 1592 { PCI_DEVICE(PCI_VENDOR_ID_SILAN, 0x8139) },
1597 { 0, } 1593 { 0, }
1598}; 1594};
1599MODULE_DEVICE_TABLE(pci, sc92031_pci_device_id_table); 1595MODULE_DEVICE_TABLE(pci, sc92031_pci_device_id_table);
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index d56ad9c21c09..302423afa136 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -2209,6 +2209,8 @@
2209 2209
2210#define PCI_VENDOR_ID_TOPSPIN 0x1867 2210#define PCI_VENDOR_ID_TOPSPIN 0x1867
2211 2211
2212#define PCI_VENDOR_ID_SILAN 0x1904
2213
2212#define PCI_VENDOR_ID_TDI 0x192E 2214#define PCI_VENDOR_ID_TDI 0x192E
2213#define PCI_DEVICE_ID_TDI_EHCI 0x0101 2215#define PCI_DEVICE_ID_TDI_EHCI 0x0101
2214 2216