Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8802
b: refs/heads/master
c: c69af03
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Wim Van Sebroeck committed Sep 11, 2005
1 parent 57e783d commit 980756f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc90ef0f9b24d1b017c8cfa22db5195c17b5c968
refs/heads/master: c69af038cad5e6ea86e927a17b70b49af1f7cbfa
6 changes: 4 additions & 2 deletions trunk/drivers/char/watchdog/i6300esb.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,11 @@ static unsigned char __init esb_getdevice (void)
* Find the PCI device
*/

while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
for_each_pci_dev(dev)
if (pci_match_device(esb_pci_tbl, dev)) {
esb_pci = dev;
break;
}
}

if (esb_pci) {
if (pci_enable_device(esb_pci)) {
Expand Down Expand Up @@ -430,6 +429,7 @@ static unsigned char __init esb_getdevice (void)
pci_release_region(esb_pci, 0);
err_disable:
pci_disable_device(esb_pci);
pci_dev_put(esb_pci);
}
out:
return 0;
Expand Down Expand Up @@ -481,6 +481,7 @@ static int __init watchdog_init (void)
pci_release_region(esb_pci, 0);
/* err_disable: */
pci_disable_device(esb_pci);
pci_dev_put(esb_pci);
/* out: */
return ret;
}
Expand All @@ -497,6 +498,7 @@ static void __exit watchdog_cleanup (void)
iounmap(BASEADDR);
pci_release_region(esb_pci, 0);
pci_disable_device(esb_pci);
pci_dev_put(esb_pci);
}

module_init(watchdog_init);
Expand Down

0 comments on commit 980756f

Please sign in to comment.