Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321448
b: refs/heads/master
c: 0e3ac20
h: refs/heads/master
v: v3
  • Loading branch information
Devendra Naga authored and Linus Walleij committed Aug 4, 2012
1 parent 276d02a commit 8144012
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: c43ba8008252d26e023f3943bb83a48641b3dec4
refs/heads/master: 0e3ac20d9f9872cbf2d00d6a63f92759cb8dd082
8 changes: 2 additions & 6 deletions trunk/drivers/pinctrl/pinctrl-u300.c
Original file line number Diff line number Diff line change
Expand Up @@ -1121,10 +1121,8 @@ static int __devinit u300_pmx_probe(struct platform_device *pdev)
upmx->dev = &pdev->dev;

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) {
ret = -ENOENT;
goto out_no_resource;
}
if (!res)
return -ENOENT;
upmx->phybase = res->start;
upmx->physize = resource_size(res);

Expand Down Expand Up @@ -1165,8 +1163,6 @@ static int __devinit u300_pmx_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, NULL);
out_no_memregion:
release_mem_region(upmx->phybase, upmx->physize);
out_no_resource:
devm_kfree(&pdev->dev, upmx);
return ret;
}

Expand Down

0 comments on commit 8144012

Please sign in to comment.