Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296790
b: refs/heads/master
c: 60a1aa5
h: refs/heads/master
v: v3
  • Loading branch information
Viresh Kumar authored and Wim Van Sebroeck committed Mar 27, 2012
1 parent 0dfe15f commit 37f2818
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 75f5a536c0b605b9b8406325f51f62f67141973e
refs/heads/master: 60a1aa50b2ca142a91455203ca2aa09502eddd20
18 changes: 9 additions & 9 deletions trunk/drivers/watchdog/mpcore_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,15 @@ static int __devinit mpcore_wdt_probe(struct platform_device *pdev)

wdt->dev = &pdev->dev;
wdt->irq = platform_get_irq(pdev, 0);
if (wdt->irq < 0)
return -ENXIO;

ret = devm_request_irq(wdt->dev, wdt->irq, mpcore_wdt_fire, 0,
"mpcore_wdt", wdt);
if (ret) {
dev_printk(KERN_ERR, wdt->dev,
"cannot register IRQ%d for watchdog\n", wdt->irq);
return ret;
if (wdt->irq >= 0) {
ret = devm_request_irq(wdt->dev, wdt->irq, mpcore_wdt_fire, 0,
"mpcore_wdt", wdt);
if (ret) {
dev_printk(KERN_ERR, wdt->dev,
"cannot register IRQ%d for watchdog\n",
wdt->irq);
return ret;
}
}

wdt->base = devm_ioremap(wdt->dev, res->start, resource_size(res));
Expand Down

0 comments on commit 37f2818

Please sign in to comment.