diff options
Diffstat (limited to 'drivers/pinctrl/spear/pinctrl-spear.c')
-rw-r--r-- | drivers/pinctrl/spear/pinctrl-spear.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pinctrl/spear/pinctrl-spear.c b/drivers/pinctrl/spear/pinctrl-spear.c index 11bd8722a007..add933286e94 100644 --- a/drivers/pinctrl/spear/pinctrl-spear.c +++ b/drivers/pinctrl/spear/pinctrl-spear.c | |||
@@ -86,10 +86,10 @@ void __devinit | |||
86 | pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup, | 86 | pmx_init_gpio_pingroup_addr(struct spear_gpio_pingroup *gpio_pingroup, |
87 | unsigned count, u16 reg) | 87 | unsigned count, u16 reg) |
88 | { | 88 | { |
89 | int i = 0, j = 0; | 89 | int i, j; |
90 | 90 | ||
91 | for (; i < count; i++) | 91 | for (i = 0; i < count; i++) |
92 | for (; j < gpio_pingroup[i].nmuxregs; j++) | 92 | for (j = 0; j < gpio_pingroup[i].nmuxregs; j++) |
93 | gpio_pingroup[i].muxregs[j].reg = reg; | 93 | gpio_pingroup[i].muxregs[j].reg = reg; |
94 | } | 94 | } |
95 | 95 | ||