Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191866
b: refs/heads/master
c: c8ee5c6
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Eric Miao committed May 11, 2010
1 parent 7bd3d2f commit c0c181d
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 077de1ad5ad8b4e08fd8853ae7e4cc628c1a369b
refs/heads/master: c8ee5c69516fdd973b981e3ac12d49b3133930cd
8 changes: 4 additions & 4 deletions trunk/arch/arm/plat-pxa/ssp.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ static int __devinit ssp_probe(struct platform_device *pdev)
goto err_free_clk;
}

res = request_mem_region(res->start, res->end - res->start + 1,
res = request_mem_region(res->start, resource_size(res),
pdev->name);
if (res == NULL) {
dev_err(&pdev->dev, "failed to request memory resource\n");
Expand All @@ -125,7 +125,7 @@ static int __devinit ssp_probe(struct platform_device *pdev)

ssp->phys_base = res->start;

ssp->mmio_base = ioremap(res->start, res->end - res->start + 1);
ssp->mmio_base = ioremap(res->start, resource_size(res));
if (ssp->mmio_base == NULL) {
dev_err(&pdev->dev, "failed to ioremap() registers\n");
ret = -ENODEV;
Expand Down Expand Up @@ -156,7 +156,7 @@ static int __devinit ssp_probe(struct platform_device *pdev)
err_free_io:
iounmap(ssp->mmio_base);
err_free_mem:
release_mem_region(res->start, res->end - res->start + 1);
release_mem_region(res->start, resource_size(res));
err_free_clk:
clk_put(ssp->clk);
err_free:
Expand All @@ -176,7 +176,7 @@ static int __devexit ssp_remove(struct platform_device *pdev)
iounmap(ssp->mmio_base);

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
release_mem_region(res->start, res->end - res->start + 1);
release_mem_region(res->start, resource_size(res));

clk_put(ssp->clk);

Expand Down

0 comments on commit c0c181d

Please sign in to comment.