Skip to content

Commit

Permalink
[WATCHDOG] i6300esb.c-2-bugs-little-cleanup.patch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Wim Van Sebroeck committed Sep 11, 2005
1 parent 811f999 commit bb5dc36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/watchdog/i6300esb.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ static struct notifier_block esb_notifier = {
* want to register another driver on the same PCI id.
*/
static struct pci_device_id esb_pci_tbl[] = {
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_9, PCI_ANY_ID, PCI_ANY_ID, },
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_9), },
{ 0, }, /* End of list */
};
MODULE_DEVICE_TABLE (pci, esb_pci_tbl);
Expand All @@ -365,7 +365,7 @@ static unsigned char __init esb_getdevice (void)
*/

for_each_pci_dev(dev) {
if (pci_match_device(esb_pci_tbl, dev)) {
if (pci_match_id(esb_pci_tbl, dev)) {
esb_pci = dev;
break;
}
Expand Down

0 comments on commit bb5dc36

Please sign in to comment.