Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95379
b: refs/heads/master
c: 770f867
h: refs/heads/master
i:
  95377: 4fc77ba
  95375: 760e9a2
v: v3
  • Loading branch information
Roel Kluin authored and Jeff Garzik committed Apr 29, 2008
1 parent f64e9b2 commit f2accd1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 0a0a83107c01a8dba04fa40ddb29ff021d4f8112
refs/heads/master: 770f867991155f9c9e36a845a142f770d55ee67c
10 changes: 7 additions & 3 deletions trunk/drivers/net/arm/am79c961a.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,11 +693,15 @@ static int __init am79c961_probe(struct platform_device *pdev)
* done by the ether bootp loader.
*/
dev->base_addr = res->start;
dev->irq = platform_get_irq(pdev, 0);
ret = platform_get_irq(pdev, 0);

ret = -ENODEV;
if (dev->irq < 0)
if (ret < 0) {
ret = -ENODEV;
goto nodev;
}
dev->irq = ret;

ret = -ENODEV;
if (!request_region(dev->base_addr, 0x18, dev->name))
goto nodev;

Expand Down

0 comments on commit f2accd1

Please sign in to comment.