Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176179
b: refs/heads/master
c: bbd050a
h: refs/heads/master
i:
  176177: 2f18357
  176175: d642916
v: v3
  • Loading branch information
John Ogness authored and Grant Likely committed Dec 9, 2009
1 parent af34aad commit 81decfb
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: ce1807b2e527979bd77d8a1a1768a6365f3febb5
refs/heads/master: bbd050af0e2b7d77bfc959cf76219eb71c3b982a
9 changes: 5 additions & 4 deletions trunk/drivers/spi/spi_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,11 +516,12 @@ static int __init spi_imx_probe(struct platform_device *pdev)
continue;
ret = gpio_request(spi_imx->chipselect[i], DRIVER_NAME);
if (ret) {
i--;
while (i > 0)
while (i > 0) {
i--;
if (spi_imx->chipselect[i] >= 0)
gpio_free(spi_imx->chipselect[i--]);
dev_err(&pdev->dev, "can't get cs gpios");
gpio_free(spi_imx->chipselect[i]);
}
dev_err(&pdev->dev, "can't get cs gpios\n");
goto out_master_put;
}
}
Expand Down

0 comments on commit 81decfb

Please sign in to comment.