Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350515
b: refs/heads/master
c: fa1ec99
h: refs/heads/master
i:
  350513: 3272b76
  350511: f55b699
v: v3
  • Loading branch information
Lee Jones authored and Linus Walleij committed Feb 6, 2013
1 parent d625034 commit 3d9d3b4
Show file tree
Hide file tree
Showing 2 changed files with 6 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: d8a7c1f134edda4ac17a99fffc1159a65a3866a7
refs/heads/master: fa1ec996ac1a42e46ec7dca089252f124c81d7bd
9 changes: 5 additions & 4 deletions trunk/drivers/pinctrl/pinctrl-abx500.c
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ static int abx500_gpio_probe(struct platform_device *pdev)
struct abx500_gpio_platform_data *pdata;
struct abx500_pinctrl *pct;
const struct platform_device_id *platid = platform_get_device_id(pdev);
int ret;
int ret, err;
int i;

pdata = abx500_pdata->gpio;
Expand Down Expand Up @@ -1189,6 +1189,7 @@ static int abx500_gpio_probe(struct platform_device *pdev)
if (!pct->pctldev) {
dev_err(&pdev->dev,
"could not register abx500 pinctrl driver\n");
ret = -EINVAL;
goto out_rem_chip;
}
dev_info(&pdev->dev, "registered pin controller\n");
Expand All @@ -1201,7 +1202,7 @@ static int abx500_gpio_probe(struct platform_device *pdev)
dev_name(&pdev->dev),
p->offset - 1, p->offset, p->npins);
if (ret < 0)
return ret;
goto out_rem_chip;
}

platform_set_drvdata(pdev, pct);
Expand All @@ -1210,8 +1211,8 @@ static int abx500_gpio_probe(struct platform_device *pdev)
return 0;

out_rem_chip:
ret = gpiochip_remove(&pct->chip);
if (ret)
err = gpiochip_remove(&pct->chip);
if (err)
dev_info(&pdev->dev, "failed to remove gpiochip\n");
out_rem_irq:
abx500_gpio_irq_remove(pct);
Expand Down

0 comments on commit 3d9d3b4

Please sign in to comment.