Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187034
b: refs/heads/master
c: ec26985
h: refs/heads/master
v: v3
  • Loading branch information
Naga Chumbalkar authored and Wim Van Sebroeck committed Mar 6, 2010
1 parent 18a6bce commit 8c99f98
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 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: f538ed9ea0a54ba2121f35f52d63e4025c534909
refs/heads/master: ec26985be4a22652c323f264cf570e4fbe3610b6
19 changes: 9 additions & 10 deletions trunk/drivers/watchdog/iTCO_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ static int __devinit iTCO_wdt_init(struct pci_dev *pdev,
if (iTCO_wdt_private.iTCO_version == 2) {
pci_read_config_dword(pdev, 0xf0, &base_address);
if ((base_address & 1) == 0) {
printk(KERN_ERR PFX "RCBA is disabled by harddware\n");
printk(KERN_ERR PFX "RCBA is disabled by hardware\n");
ret = -ENODEV;
goto out;
}
Expand All @@ -708,8 +708,8 @@ static int __devinit iTCO_wdt_init(struct pci_dev *pdev,

/* Check chipset's NO_REBOOT bit */
if (iTCO_wdt_unset_NO_REBOOT_bit() && iTCO_vendor_check_noreboot_on()) {
printk(KERN_ERR PFX "failed to reset NO_REBOOT flag, "
"reboot disabled by hardware\n");
printk(KERN_INFO PFX "unable to reset NO_REBOOT flag, "
"platform may have disabled it\n");
ret = -ENODEV; /* Cannot reset NO_REBOOT bit */
goto out_unmap;
}
Expand Down Expand Up @@ -805,6 +805,7 @@ static void __devexit iTCO_wdt_cleanup(void)

static int __devinit iTCO_wdt_probe(struct platform_device *dev)
{
int ret = -ENODEV;
int found = 0;
struct pci_dev *pdev = NULL;
const struct pci_device_id *ent;
Expand All @@ -814,19 +815,17 @@ static int __devinit iTCO_wdt_probe(struct platform_device *dev)
for_each_pci_dev(pdev) {
ent = pci_match_id(iTCO_wdt_pci_tbl, pdev);
if (ent) {
if (!(iTCO_wdt_init(pdev, ent, dev))) {
found++;
found++;
ret = iTCO_wdt_init(pdev, ent, dev);
if (!ret)
break;
}
}
}

if (!found) {
if (!found)
printk(KERN_INFO PFX "No card detected\n");
return -ENODEV;
}

return 0;
return ret;
}

static int __devexit iTCO_wdt_remove(struct platform_device *dev)
Expand Down

0 comments on commit 8c99f98

Please sign in to comment.