diff options
author | Jiri Slaby <xslaby@fi.muni.cz> | 2005-08-22 03:05:03 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2005-09-11 15:56:10 -0400 |
commit | bb5dc36644975ca5237a415fb63f59f9803d84fa (patch) | |
tree | b1c15ddc813c7869bbbaaf1d3cb3701b95b5331e /drivers/char/watchdog/i6300esb.c | |
parent | 811f999160487c586917937e95506cb8528472a3 (diff) |
[WATCHDOG] i6300esb.c-2-bugs-little-cleanup.patch
In i6300esb.c watchdog card driver were 2 bugs (misused pc_match_device and
pci_dev_put wasn't called in one error case) and one little cleanup was
done (long line was converted to a shorter one with using built-in macro).
Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'drivers/char/watchdog/i6300esb.c')
-rw-r--r-- | drivers/char/watchdog/i6300esb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/watchdog/i6300esb.c b/drivers/char/watchdog/i6300esb.c index 823924e4249b..575d6cd9e59a 100644 --- a/drivers/char/watchdog/i6300esb.c +++ b/drivers/char/watchdog/i6300esb.c | |||
@@ -345,7 +345,7 @@ static struct notifier_block esb_notifier = { | |||
345 | * want to register another driver on the same PCI id. | 345 | * want to register another driver on the same PCI id. |
346 | */ | 346 | */ |
347 | static struct pci_device_id esb_pci_tbl[] = { | 347 | static struct pci_device_id esb_pci_tbl[] = { |
348 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_9, PCI_ANY_ID, PCI_ANY_ID, }, | 348 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_9), }, |
349 | { 0, }, /* End of list */ | 349 | { 0, }, /* End of list */ |
350 | }; | 350 | }; |
351 | MODULE_DEVICE_TABLE (pci, esb_pci_tbl); | 351 | MODULE_DEVICE_TABLE (pci, esb_pci_tbl); |
@@ -365,7 +365,7 @@ static unsigned char __init esb_getdevice (void) | |||
365 | */ | 365 | */ |
366 | 366 | ||
367 | for_each_pci_dev(dev) { | 367 | for_each_pci_dev(dev) { |
368 | if (pci_match_device(esb_pci_tbl, dev)) { | 368 | if (pci_match_id(esb_pci_tbl, dev)) { |
369 | esb_pci = dev; | 369 | esb_pci = dev; |
370 | break; | 370 | break; |
371 | } | 371 | } |