]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
sc92031: use device id directly instead of made-up name
authorCesar Eduardo Barros <cesarb@cesarb.net>
Thu, 15 Jan 2009 04:34:04 +0000 (20:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jan 2009 22:03:41 +0000 (14:03 -0800)
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>
drivers/net/sc92031.c
include/linux/pci_ids.h

index d24acdcdb157e95c4c81058ee51e5dc5b6dee831..00dfddbf2f9b66ad8c2044cf10958878e69aa047 100644 (file)
 
 #include <asm/irq.h>
 
-#define PCI_VENDOR_ID_SILAN            0x1904
-#define PCI_DEVICE_ID_SILAN_SC92031    0x2031
-#define PCI_DEVICE_ID_SILAN_8139D      0x8139
-
 #define SC92031_NAME "sc92031"
 
 /* BAR 0 is MMIO, BAR 1 is PIO */
@@ -1592,8 +1588,8 @@ out:
 }
 
 static struct pci_device_id sc92031_pci_device_id_table[] __devinitdata = {
-       { PCI_DEVICE(PCI_VENDOR_ID_SILAN, PCI_DEVICE_ID_SILAN_SC92031) },
-       { PCI_DEVICE(PCI_VENDOR_ID_SILAN, PCI_DEVICE_ID_SILAN_8139D) },
+       { PCI_DEVICE(PCI_VENDOR_ID_SILAN, 0x2031) },
+       { PCI_DEVICE(PCI_VENDOR_ID_SILAN, 0x8139) },
        { 0, }
 };
 MODULE_DEVICE_TABLE(pci, sc92031_pci_device_id_table);
index d56ad9c21c09fb677e9a312da9c30987268ca504..302423afa1363b3e23d2e3b84a4381326170c452 100644 (file)
 
 #define PCI_VENDOR_ID_TOPSPIN          0x1867
 
+#define PCI_VENDOR_ID_SILAN            0x1904
+
 #define PCI_VENDOR_ID_TDI               0x192E
 #define PCI_DEVICE_ID_TDI_EHCI          0x0101