diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2011-02-21 07:16:44 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2011-03-15 12:02:22 -0400 |
commit | 4562f53940432369df88e195ef8f9b642bdf7cd6 (patch) | |
tree | 6bd0fa13d63f33db387716895710d00ab7c7f57d | |
parent | 066d6c7f4ec94d40d13061714489783916548cdb (diff) |
watchdog: convert to DEFINE_PCI_DEVICE_TABLE
Convert static struct pci_device_id *[] to static DEFINE_PCI_DEVICE_TABLE tables.
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
-rw-r--r-- | drivers/watchdog/alim1535_wdt.c | 2 | ||||
-rw-r--r-- | drivers/watchdog/alim7101_wdt.c | 2 | ||||
-rw-r--r-- | drivers/watchdog/hpwdt.c | 2 | ||||
-rw-r--r-- | drivers/watchdog/i6300esb.c | 2 | ||||
-rw-r--r-- | drivers/watchdog/iTCO_wdt.c | 2 | ||||
-rw-r--r-- | drivers/watchdog/nv_tco.c | 2 | ||||
-rw-r--r-- | drivers/watchdog/pcwd_pci.c | 2 | ||||
-rw-r--r-- | drivers/watchdog/sp5100_tco.c | 2 | ||||
-rw-r--r-- | drivers/watchdog/wdt_pci.c | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/drivers/watchdog/alim1535_wdt.c b/drivers/watchdog/alim1535_wdt.c index fa4d36033552..f9e1b7eb6c49 100644 --- a/drivers/watchdog/alim1535_wdt.c +++ b/drivers/watchdog/alim1535_wdt.c | |||
@@ -301,7 +301,7 @@ static int ali_notify_sys(struct notifier_block *this, | |||
301 | * want to register another driver on the same PCI id. | 301 | * want to register another driver on the same PCI id. |
302 | */ | 302 | */ |
303 | 303 | ||
304 | static struct pci_device_id ali_pci_tbl[] __used = { | 304 | static DEFINE_PCI_DEVICE_TABLE(ali_pci_tbl) __used = { |
305 | { PCI_VENDOR_ID_AL, 0x1533, PCI_ANY_ID, PCI_ANY_ID,}, | 305 | { PCI_VENDOR_ID_AL, 0x1533, PCI_ANY_ID, PCI_ANY_ID,}, |
306 | { PCI_VENDOR_ID_AL, 0x1535, PCI_ANY_ID, PCI_ANY_ID,}, | 306 | { PCI_VENDOR_ID_AL, 0x1535, PCI_ANY_ID, PCI_ANY_ID,}, |
307 | { 0, }, | 307 | { 0, }, |
diff --git a/drivers/watchdog/alim7101_wdt.c b/drivers/watchdog/alim7101_wdt.c index 4b7a2b4138ed..46f4b85b46de 100644 --- a/drivers/watchdog/alim7101_wdt.c +++ b/drivers/watchdog/alim7101_wdt.c | |||
@@ -430,7 +430,7 @@ err_out: | |||
430 | module_init(alim7101_wdt_init); | 430 | module_init(alim7101_wdt_init); |
431 | module_exit(alim7101_wdt_unload); | 431 | module_exit(alim7101_wdt_unload); |
432 | 432 | ||
433 | static struct pci_device_id alim7101_pci_tbl[] __devinitdata __used = { | 433 | static DEFINE_PCI_DEVICE_TABLE(alim7101_pci_tbl) __used = { |
434 | { PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533) }, | 434 | { PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533) }, |
435 | { PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M7101) }, | 435 | { PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M7101) }, |
436 | { } | 436 | { } |
diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index 204a5603c4ae..8cb26855bfed 100644 --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c | |||
@@ -52,7 +52,7 @@ static void __iomem *pci_mem_addr; /* the PCI-memory address */ | |||
52 | static unsigned long __iomem *hpwdt_timer_reg; | 52 | static unsigned long __iomem *hpwdt_timer_reg; |
53 | static unsigned long __iomem *hpwdt_timer_con; | 53 | static unsigned long __iomem *hpwdt_timer_con; |
54 | 54 | ||
55 | static struct pci_device_id hpwdt_devices[] = { | 55 | static DEFINE_PCI_DEVICE_TABLE(hpwdt_devices) = { |
56 | { PCI_DEVICE(PCI_VENDOR_ID_COMPAQ, 0xB203) }, /* iLO2 */ | 56 | { PCI_DEVICE(PCI_VENDOR_ID_COMPAQ, 0xB203) }, /* iLO2 */ |
57 | { PCI_DEVICE(PCI_VENDOR_ID_HP, 0x3306) }, /* iLO3 */ | 57 | { PCI_DEVICE(PCI_VENDOR_ID_HP, 0x3306) }, /* iLO3 */ |
58 | {0}, /* terminate list */ | 58 | {0}, /* terminate list */ |
diff --git a/drivers/watchdog/i6300esb.c b/drivers/watchdog/i6300esb.c index bb9750a03942..db45091ef434 100644 --- a/drivers/watchdog/i6300esb.c +++ b/drivers/watchdog/i6300esb.c | |||
@@ -334,7 +334,7 @@ static struct miscdevice esb_miscdev = { | |||
334 | /* | 334 | /* |
335 | * Data for PCI driver interface | 335 | * Data for PCI driver interface |
336 | */ | 336 | */ |
337 | static struct pci_device_id esb_pci_tbl[] = { | 337 | static DEFINE_PCI_DEVICE_TABLE(esb_pci_tbl) = { |
338 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_9), }, | 338 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_9), }, |
339 | { 0, }, /* End of list */ | 339 | { 0, }, /* End of list */ |
340 | }; | 340 | }; |
diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c index 2c6c2b4ad8bf..db0f5b85ba5f 100644 --- a/drivers/watchdog/iTCO_wdt.c +++ b/drivers/watchdog/iTCO_wdt.c | |||
@@ -262,7 +262,7 @@ static struct { | |||
262 | * pci_driver, because the I/O Controller Hub has also other | 262 | * pci_driver, because the I/O Controller Hub has also other |
263 | * functions that probably will be registered by other drivers. | 263 | * functions that probably will be registered by other drivers. |
264 | */ | 264 | */ |
265 | static struct pci_device_id iTCO_wdt_pci_tbl[] = { | 265 | static DEFINE_PCI_DEVICE_TABLE(iTCO_wdt_pci_tbl) = { |
266 | { ITCO_PCI_DEVICE(PCI_DEVICE_ID_INTEL_82801AA_0, TCO_ICH)}, | 266 | { ITCO_PCI_DEVICE(PCI_DEVICE_ID_INTEL_82801AA_0, TCO_ICH)}, |
267 | { ITCO_PCI_DEVICE(PCI_DEVICE_ID_INTEL_82801AB_0, TCO_ICH0)}, | 267 | { ITCO_PCI_DEVICE(PCI_DEVICE_ID_INTEL_82801AB_0, TCO_ICH0)}, |
268 | { ITCO_PCI_DEVICE(PCI_DEVICE_ID_INTEL_82801BA_0, TCO_ICH2)}, | 268 | { ITCO_PCI_DEVICE(PCI_DEVICE_ID_INTEL_82801BA_0, TCO_ICH2)}, |
diff --git a/drivers/watchdog/nv_tco.c b/drivers/watchdog/nv_tco.c index 1a50aa7079bf..267377a5a83e 100644 --- a/drivers/watchdog/nv_tco.c +++ b/drivers/watchdog/nv_tco.c | |||
@@ -289,7 +289,7 @@ static struct miscdevice nv_tco_miscdev = { | |||
289 | * register a pci_driver, because someone else might one day | 289 | * register a pci_driver, because someone else might one day |
290 | * want to register another driver on the same PCI id. | 290 | * want to register another driver on the same PCI id. |
291 | */ | 291 | */ |
292 | static struct pci_device_id tco_pci_tbl[] = { | 292 | static DEFINE_PCI_DEVICE_TABLE(tco_pci_tbl) = { |
293 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SMBUS, | 293 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SMBUS, |
294 | PCI_ANY_ID, PCI_ANY_ID, }, | 294 | PCI_ANY_ID, PCI_ANY_ID, }, |
295 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SMBUS, | 295 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SMBUS, |
diff --git a/drivers/watchdog/pcwd_pci.c b/drivers/watchdog/pcwd_pci.c index 64374d636f09..b8d14f88f0b5 100644 --- a/drivers/watchdog/pcwd_pci.c +++ b/drivers/watchdog/pcwd_pci.c | |||
@@ -817,7 +817,7 @@ static void __devexit pcipcwd_card_exit(struct pci_dev *pdev) | |||
817 | cards_found--; | 817 | cards_found--; |
818 | } | 818 | } |
819 | 819 | ||
820 | static struct pci_device_id pcipcwd_pci_tbl[] = { | 820 | static DEFINE_PCI_DEVICE_TABLE(pcipcwd_pci_tbl) = { |
821 | { PCI_VENDOR_ID_QUICKLOGIC, PCI_DEVICE_ID_WATCHDOG_PCIPCWD, | 821 | { PCI_VENDOR_ID_QUICKLOGIC, PCI_DEVICE_ID_WATCHDOG_PCIPCWD, |
822 | PCI_ANY_ID, PCI_ANY_ID, }, | 822 | PCI_ANY_ID, PCI_ANY_ID, }, |
823 | { 0 }, /* End of list */ | 823 | { 0 }, /* End of list */ |
diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/watchdog/sp5100_tco.c index 808372883e88..1bc493848ed4 100644 --- a/drivers/watchdog/sp5100_tco.c +++ b/drivers/watchdog/sp5100_tco.c | |||
@@ -259,7 +259,7 @@ static struct miscdevice sp5100_tco_miscdev = { | |||
259 | * register a pci_driver, because someone else might | 259 | * register a pci_driver, because someone else might |
260 | * want to register another driver on the same PCI id. | 260 | * want to register another driver on the same PCI id. |
261 | */ | 261 | */ |
262 | static struct pci_device_id sp5100_tco_pci_tbl[] = { | 262 | static DEFINE_PCI_DEVICE_TABLE(sp5100_tco_pci_tbl) = { |
263 | { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SBX00_SMBUS, PCI_ANY_ID, | 263 | { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SBX00_SMBUS, PCI_ANY_ID, |
264 | PCI_ANY_ID, }, | 264 | PCI_ANY_ID, }, |
265 | { 0, }, /* End of list */ | 265 | { 0, }, /* End of list */ |
diff --git a/drivers/watchdog/wdt_pci.c b/drivers/watchdog/wdt_pci.c index 6130c88fa5ac..97bb6fbdcf56 100644 --- a/drivers/watchdog/wdt_pci.c +++ b/drivers/watchdog/wdt_pci.c | |||
@@ -727,7 +727,7 @@ static void __devexit wdtpci_remove_one(struct pci_dev *pdev) | |||
727 | } | 727 | } |
728 | 728 | ||
729 | 729 | ||
730 | static struct pci_device_id wdtpci_pci_tbl[] = { | 730 | static DEFINE_PCI_DEVICE_TABLE(wdtpci_pci_tbl) = { |
731 | { | 731 | { |
732 | .vendor = PCI_VENDOR_ID_ACCESSIO, | 732 | .vendor = PCI_VENDOR_ID_ACCESSIO, |
733 | .device = PCI_DEVICE_ID_ACCESSIO_WDG_CSM, | 733 | .device = PCI_DEVICE_ID_ACCESSIO_WDG_CSM, |