diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-12-02 18:30:22 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2014-01-28 13:07:07 -0500 |
commit | bc17f9dcb11dfe7a5f02103da51f580d62a6df2c (patch) | |
tree | 7ba8d1b2e0bd8f639aef7a36566da31f5711767d /drivers/watchdog | |
parent | 627f4b3ee3899bb70263ee77454a43c73136562f (diff) |
watchdog: remove DEFINE_PCI_DEVICE_TABLE macro
Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro
is not preferred.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-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/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/via_wdt.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 fbb7b94cabfd..3a17fbd39f8a 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 DEFINE_PCI_DEVICE_TABLE(ali_pci_tbl) __used = { | 304 | static const struct pci_device_id 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 12f0b762b528..996b2f7d330e 100644 --- a/drivers/watchdog/alim7101_wdt.c +++ b/drivers/watchdog/alim7101_wdt.c | |||
@@ -414,7 +414,7 @@ err_out: | |||
414 | module_init(alim7101_wdt_init); | 414 | module_init(alim7101_wdt_init); |
415 | module_exit(alim7101_wdt_unload); | 415 | module_exit(alim7101_wdt_unload); |
416 | 416 | ||
417 | static DEFINE_PCI_DEVICE_TABLE(alim7101_pci_tbl) __used = { | 417 | static const struct pci_device_id alim7101_pci_tbl[] __used = { |
418 | { PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533) }, | 418 | { PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533) }, |
419 | { PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M7101) }, | 419 | { PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M7101) }, |
420 | { } | 420 | { } |
diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index 45b979d9dd13..4f1c3e0459ff 100644 --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c | |||
@@ -55,7 +55,7 @@ static void __iomem *pci_mem_addr; /* the PCI-memory address */ | |||
55 | static unsigned long __iomem *hpwdt_timer_reg; | 55 | static unsigned long __iomem *hpwdt_timer_reg; |
56 | static unsigned long __iomem *hpwdt_timer_con; | 56 | static unsigned long __iomem *hpwdt_timer_con; |
57 | 57 | ||
58 | static DEFINE_PCI_DEVICE_TABLE(hpwdt_devices) = { | 58 | static const struct pci_device_id hpwdt_devices[] = { |
59 | { PCI_DEVICE(PCI_VENDOR_ID_COMPAQ, 0xB203) }, /* iLO2 */ | 59 | { PCI_DEVICE(PCI_VENDOR_ID_COMPAQ, 0xB203) }, /* iLO2 */ |
60 | { PCI_DEVICE(PCI_VENDOR_ID_HP, 0x3306) }, /* iLO3 */ | 60 | { PCI_DEVICE(PCI_VENDOR_ID_HP, 0x3306) }, /* iLO3 */ |
61 | {0}, /* terminate list */ | 61 | {0}, /* terminate list */ |
diff --git a/drivers/watchdog/i6300esb.c b/drivers/watchdog/i6300esb.c index a72fe9361ddf..25a2bfdb4e9d 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 DEFINE_PCI_DEVICE_TABLE(esb_pci_tbl) = { | 337 | static const struct pci_device_id 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/nv_tco.c b/drivers/watchdog/nv_tco.c index 231e5b9d5c8e..0b9ec61e1313 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 DEFINE_PCI_DEVICE_TABLE(tco_pci_tbl) = { | 292 | static const struct pci_device_id 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 b4864f254b48..c0d07eef2640 100644 --- a/drivers/watchdog/pcwd_pci.c +++ b/drivers/watchdog/pcwd_pci.c | |||
@@ -801,7 +801,7 @@ static void pcipcwd_card_exit(struct pci_dev *pdev) | |||
801 | cards_found--; | 801 | cards_found--; |
802 | } | 802 | } |
803 | 803 | ||
804 | static DEFINE_PCI_DEVICE_TABLE(pcipcwd_pci_tbl) = { | 804 | static const struct pci_device_id pcipcwd_pci_tbl[] = { |
805 | { PCI_VENDOR_ID_QUICKLOGIC, PCI_DEVICE_ID_WATCHDOG_PCIPCWD, | 805 | { PCI_VENDOR_ID_QUICKLOGIC, PCI_DEVICE_ID_WATCHDOG_PCIPCWD, |
806 | PCI_ANY_ID, PCI_ANY_ID, }, | 806 | PCI_ANY_ID, PCI_ANY_ID, }, |
807 | { 0 }, /* End of list */ | 807 | { 0 }, /* End of list */ |
diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/watchdog/sp5100_tco.c index ce63a1bbf395..5cca9cddb87d 100644 --- a/drivers/watchdog/sp5100_tco.c +++ b/drivers/watchdog/sp5100_tco.c | |||
@@ -303,7 +303,7 @@ static struct miscdevice sp5100_tco_miscdev = { | |||
303 | * register a pci_driver, because someone else might | 303 | * register a pci_driver, because someone else might |
304 | * want to register another driver on the same PCI id. | 304 | * want to register another driver on the same PCI id. |
305 | */ | 305 | */ |
306 | static DEFINE_PCI_DEVICE_TABLE(sp5100_tco_pci_tbl) = { | 306 | static const struct pci_device_id sp5100_tco_pci_tbl[] = { |
307 | { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SBX00_SMBUS, PCI_ANY_ID, | 307 | { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SBX00_SMBUS, PCI_ANY_ID, |
308 | PCI_ANY_ID, }, | 308 | PCI_ANY_ID, }, |
309 | { 0, }, /* End of list */ | 309 | { 0, }, /* End of list */ |
diff --git a/drivers/watchdog/via_wdt.c b/drivers/watchdog/via_wdt.c index 1a68f760cf86..d2cd9f0bcb9a 100644 --- a/drivers/watchdog/via_wdt.c +++ b/drivers/watchdog/via_wdt.c | |||
@@ -239,7 +239,7 @@ static void wdt_remove(struct pci_dev *pdev) | |||
239 | pci_disable_device(pdev); | 239 | pci_disable_device(pdev); |
240 | } | 240 | } |
241 | 241 | ||
242 | static DEFINE_PCI_DEVICE_TABLE(wdt_pci_table) = { | 242 | static const struct pci_device_id wdt_pci_table[] = { |
243 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_CX700) }, | 243 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_CX700) }, |
244 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VX800) }, | 244 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VX800) }, |
245 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VX855) }, | 245 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VX855) }, |
diff --git a/drivers/watchdog/wdt_pci.c b/drivers/watchdog/wdt_pci.c index ee89ba4dea63..3dc578e71211 100644 --- a/drivers/watchdog/wdt_pci.c +++ b/drivers/watchdog/wdt_pci.c | |||
@@ -720,7 +720,7 @@ static void wdtpci_remove_one(struct pci_dev *pdev) | |||
720 | } | 720 | } |
721 | 721 | ||
722 | 722 | ||
723 | static DEFINE_PCI_DEVICE_TABLE(wdtpci_pci_tbl) = { | 723 | static const struct pci_device_id wdtpci_pci_tbl[] = { |
724 | { | 724 | { |
725 | .vendor = PCI_VENDOR_ID_ACCESSIO, | 725 | .vendor = PCI_VENDOR_ID_ACCESSIO, |
726 | .device = PCI_DEVICE_ID_ACCESSIO_WDG_CSM, | 726 | .device = PCI_DEVICE_ID_ACCESSIO_WDG_CSM, |