Skip to content

Commit

Permalink
sc92031: use device id directly instead of made-up name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cesar Eduardo Barros authored and David S. Miller committed Jan 21, 2009
1 parent f08d7c3 commit 5ec99fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/net/sc92031.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@

#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 */
Expand Down Expand Up @@ -1592,8 +1588,8 @@ static int sc92031_resume(struct pci_dev *pdev)
}

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);
Expand Down
2 changes: 2 additions & 0 deletions include/linux/pci_ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -2209,6 +2209,8 @@

#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

Expand Down

0 comments on commit 5ec99fd

Please sign in to comment.