diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-10-26 10:54:34 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-10-28 15:34:14 -0400 |
commit | a7e35b9c324f73386e33ded83fca2d70771a1f06 (patch) | |
tree | 74b22d1fb2ca75775b1c2c88f966cb6f34022b0a /drivers/pinctrl | |
parent | 05daa16a86b1f822eeb4324f8874d4d9b915a717 (diff) |
pinctrl/at91: remove unused variable in at91_dt_node_to_map()
The variable pin is initialized but never used
otherwise, so remove the unused variable.
dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinctrl-at91.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index ddfb5dbd88db..65f066c45003 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c | |||
@@ -220,7 +220,6 @@ static int at91_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
220 | struct device_node *parent; | 220 | struct device_node *parent; |
221 | int map_num = 1; | 221 | int map_num = 1; |
222 | int i; | 222 | int i; |
223 | struct at91_pmx_pin *pin; | ||
224 | 223 | ||
225 | /* | 224 | /* |
226 | * first find the group of this node and check if we need create | 225 | * first find the group of this node and check if we need create |
@@ -255,8 +254,6 @@ static int at91_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
255 | /* create config map */ | 254 | /* create config map */ |
256 | new_map++; | 255 | new_map++; |
257 | for (i = 0; i < grp->npins; i++) { | 256 | for (i = 0; i < grp->npins; i++) { |
258 | pin = &grp->pins_conf[i]; | ||
259 | |||
260 | new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; | 257 | new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; |
261 | new_map[i].data.configs.group_or_pin = | 258 | new_map[i].data.configs.group_or_pin = |
262 | pin_get_name(pctldev, grp->pins[i]); | 259 | pin_get_name(pctldev, grp->pins[i]); |