diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2012-10-27 11:51:38 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-11-11 19:07:03 +0100 |
commit | f4f8e5635f398645d614dff5a07598651faf3ead (patch) | |
tree | b9380ec4898195a3dcb9787ef2db6f348b825fda /drivers/pinctrl/spear/pinctrl-spear300.c | |
parent | gpiolib: iron out include ladder mistakes (diff) | |
download | linux-f4f8e5635f398645d614dff5a07598651faf3ead.tar.xz linux-f4f8e5635f398645d614dff5a07598651faf3ead.zip |
pinctrl: SPEAr: Add gpio ranges support
Most of SPEAr SoCs, which support pinctrl, can configure & use pads as gpio.
This patch gpio enable support for SPEAr pinctrl drivers.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/spear/pinctrl-spear300.c')
-rw-r--r-- | drivers/pinctrl/spear/pinctrl-spear300.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pinctrl/spear/pinctrl-spear300.c b/drivers/pinctrl/spear/pinctrl-spear300.c index 4dfc2849b172..9a491007f42d 100644 --- a/drivers/pinctrl/spear/pinctrl-spear300.c +++ b/drivers/pinctrl/spear/pinctrl-spear300.c @@ -661,6 +661,8 @@ static int __devinit spear300_pinctrl_probe(struct platform_device *pdev) spear3xx_machdata.ngroups = ARRAY_SIZE(spear300_pingroups); spear3xx_machdata.functions = spear300_functions; spear3xx_machdata.nfunctions = ARRAY_SIZE(spear300_functions); + spear3xx_machdata.gpio_pingroups = NULL; + spear3xx_machdata.ngpio_pingroups = 0; spear3xx_machdata.modes_supported = true; spear3xx_machdata.pmx_modes = spear300_pmx_modes; |