Skip to content

Commit

Permalink
watchdog: wdt_pci.c: move ids to pci_ids.h
Browse files Browse the repository at this point in the history
Move the VENDOR/DEVICE ids to pci_ids.h.

Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: Jesse Barnes <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
  • Loading branch information
bigguiness authored and Wim Van Sebroeck committed Aug 8, 2010
1 parent 9a37256 commit 9f2cc6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
15 changes: 1 addition & 14 deletions drivers/watchdog/wdt_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,6 @@

#define PFX "wdt_pci: "

/*
* Until Access I/O gets their application for a PCI vendor ID approved,
* I don't think that it's appropriate to move these constants into the
* regular pci_ids.h file. -- JPN 2000/01/18
*/

#ifndef PCI_VENDOR_ID_ACCESSIO
#define PCI_VENDOR_ID_ACCESSIO 0x494f
#endif
#ifndef PCI_DEVICE_ID_WDG_CSM
#define PCI_DEVICE_ID_WDG_CSM 0x22c0
#endif

/* We can only use 1 card due to the /dev/watchdog restriction */
static int dev_count;

Expand Down Expand Up @@ -743,7 +730,7 @@ static void __devexit wdtpci_remove_one(struct pci_dev *pdev)
static struct pci_device_id wdtpci_pci_tbl[] = {
{
.vendor = PCI_VENDOR_ID_ACCESSIO,
.device = PCI_DEVICE_ID_WDG_CSM,
.device = PCI_DEVICE_ID_ACCESSIO_WDG_CSM,
.subvendor = PCI_ANY_ID,
.subdevice = PCI_ANY_ID,
},
Expand Down
3 changes: 3 additions & 0 deletions include/linux/pci_ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -2372,6 +2372,9 @@
#define PCI_VENDOR_ID_AKS 0x416c
#define PCI_DEVICE_ID_AKS_ALADDINCARD 0x0100

#define PCI_VENDOR_ID_ACCESSIO 0x494f
#define PCI_DEVICE_ID_ACCESSIO_WDG_CSM 0x22c0

#define PCI_VENDOR_ID_S3 0x5333
#define PCI_DEVICE_ID_S3_TRIO 0x8811
#define PCI_DEVICE_ID_S3_868 0x8880
Expand Down

0 comments on commit 9f2cc6f

Please sign in to comment.