Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164810
b: refs/heads/master
c: 971370c
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Linus Torvalds committed Sep 23, 2009
1 parent b9a857c commit 5f00508
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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: 72445af880dbcd41cffd0d7b78a8c74da093e9eb
refs/heads/master: 971370cc18ae13e87b68ba1769cbad497fa4ab98
14 changes: 10 additions & 4 deletions trunk/drivers/rtc/rtc-ep93xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,16 @@ static int __init ep93xx_rtc_probe(struct platform_device *pdev)
return -ENOMEM;

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (res == NULL)
return -ENXIO;
if (res == NULL) {
err = -ENXIO;
goto fail_free;
}

res = request_mem_region(res->start, resource_size(res), pdev->name);
if (res == NULL)
return -EBUSY;
if (res == NULL) {
err = -EBUSY;
goto fail_free;
}

ep93xx_rtc->mmio_base = ioremap(res->start, resource_size(res));
if (ep93xx_rtc->mmio_base == NULL) {
Expand Down Expand Up @@ -169,6 +173,8 @@ static int __init ep93xx_rtc_probe(struct platform_device *pdev)
pdev->dev.platform_data = NULL;
}
release_mem_region(res->start, resource_size(res));
fail_free:
kfree(ep93xx_rtc);
return err;
}

Expand Down

0 comments on commit 5f00508

Please sign in to comment.