Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94952
b: refs/heads/master
c: 6278367
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Russell King committed Apr 28, 2008
1 parent 923e69d commit 2926765
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: 26eed9a5c61edd93d88e147188d4feae6770174e
refs/heads/master: 62783679540fbdfd74e10fbe9478d978141ba45f
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 2926765

Please sign in to comment.