Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336421
b: refs/heads/master
c: 6f37b1b
h: refs/heads/master
i:
  336419: 5d5c762
v: v3
  • Loading branch information
Axel Lin authored and Linus Walleij committed Nov 15, 2012
1 parent 1215142 commit 1ca1887
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: 80357203ec68a2c8ebcb61d2cebdf02d10369af1
refs/heads/master: 6f37b1b4d407d6abcd24c4519cd892903229cd95
6 changes: 3 additions & 3 deletions trunk/drivers/pinctrl/spear/pinctrl-spear.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,12 @@ static struct spear_gpio_pingroup *get_gpio_pingroup(struct spear_pmx *pmx,
unsigned pin)
{
struct spear_gpio_pingroup *gpio_pingroup;
int i = 0, j;
int i, j;

if (!pmx->machdata->gpio_pingroups)
return NULL;

for (; i < pmx->machdata->ngpio_pingroups; i++) {
for (i = 0; i < pmx->machdata->ngpio_pingroups; i++) {
gpio_pingroup = &pmx->machdata->gpio_pingroups[i];

for (j = 0; j < gpio_pingroup->npins; j++) {
Expand All @@ -300,7 +300,7 @@ static struct spear_gpio_pingroup *get_gpio_pingroup(struct spear_pmx *pmx,
}
}

return ERR_PTR(-EINVAL);
return NULL;
}

static int gpio_request_endisable(struct pinctrl_dev *pctldev,
Expand Down

0 comments on commit 1ca1887

Please sign in to comment.