Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8805
b: refs/heads/master
c: 811f999
h: refs/heads/master
i:
  8803: 2ed6c97
v: v3
  • Loading branch information
Naveen Gupta authored and Wim Van Sebroeck committed Sep 11, 2005
1 parent 089a893 commit 90ae4f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 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: ce2f50b4ae71f700c7b4b0bf0ff11c328611dae8
refs/heads/master: 811f999160487c586917937e95506cb8528472a3
15 changes: 6 additions & 9 deletions trunk/drivers/char/watchdog/i6300esb.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ static int heartbeat = WATCHDOG_HEARTBEAT; /* in seconds */
module_param(heartbeat, int, 0);
MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (1<heartbeat<2046, default=" __MODULE_STRING(WATCHDOG_HEARTBEAT) ")");

#ifdef CONFIG_WATCHDOG_NOWAYOUT
static int nowayout = 1;
#else
static int nowayout = 0;
#endif
static int nowayout = WATCHDOG_NOWAYOUT;
module_param(nowayout, int, 0);
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=CONFIG_WATCHDOG_NOWAYOUT)");

Expand Down Expand Up @@ -368,16 +364,17 @@ static unsigned char __init esb_getdevice (void)
* Find the PCI device
*/

for_each_pci_dev(dev)
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)) {
printk (KERN_ERR PFX "failed to enable device\n");
goto out;
goto err_devput;
}

if (pci_request_region(esb_pci, 0, ESB_MODULE_NAME)) {
Expand Down Expand Up @@ -429,9 +426,9 @@ static unsigned char __init esb_getdevice (void)
pci_release_region(esb_pci, 0);
err_disable:
pci_disable_device(esb_pci);
err_devput:
pci_dev_put(esb_pci);
}
out:
return 0;
}

Expand Down Expand Up @@ -481,8 +478,8 @@ static int __init watchdog_init (void)
pci_release_region(esb_pci, 0);
/* err_disable: */
pci_disable_device(esb_pci);
/* err_devput: */
pci_dev_put(esb_pci);
/* out: */
return ret;
}

Expand Down

0 comments on commit 90ae4f1

Please sign in to comment.