Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142309
b: refs/heads/master
c: b2ed368
h: refs/heads/master
i:
  142307: 4affe4e
v: v3
  • Loading branch information
Mike Rapoport authored and David Woodhouse committed Mar 20, 2009
1 parent e3dad16 commit 2fee4ea
Show file tree
Hide file tree
Showing 2 changed files with 4 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: e7f521636a2d6b1a012f98f6ec16898c5d6f1543
refs/heads/master: b2ed3680553b451e5c45064de26ea8fa5201c6d4
6 changes: 3 additions & 3 deletions trunk/drivers/mtd/nand/pxa3xx_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,14 +1118,14 @@ static int pxa3xx_nand_probe(struct platform_device *pdev)
goto fail_put_clk;
}

r = request_mem_region(r->start, r->end - r->start + 1, pdev->name);
r = request_mem_region(r->start, resource_size(r), pdev->name);
if (r == NULL) {
dev_err(&pdev->dev, "failed to request memory resource\n");
ret = -EBUSY;
goto fail_put_clk;
}

info->mmio_base = ioremap(r->start, r->end - r->start + 1);
info->mmio_base = ioremap(r->start, resource_size(r));
if (info->mmio_base == NULL) {
dev_err(&pdev->dev, "ioremap() failed\n");
ret = -ENODEV;
Expand Down Expand Up @@ -1174,7 +1174,7 @@ static int pxa3xx_nand_probe(struct platform_device *pdev)
fail_free_io:
iounmap(info->mmio_base);
fail_free_res:
release_mem_region(r->start, r->end - r->start + 1);
release_mem_region(r->start, resource_size(r));
fail_put_clk:
clk_disable(info->clk);
clk_put(info->clk);
Expand Down

0 comments on commit 2fee4ea

Please sign in to comment.