pinctrl: at91: Remove duplicate const
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 15 Mar 2013 04:37:02 +0000 (10:07 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 27 Mar 2013 21:46:18 +0000 (22:46 +0100)
const declared twice. Fixes the following sparse warning:
drivers/pinctrl/pinctrl-at91.c:815:21: warning: duplicate const
drivers/pinctrl/pinctrl-at91.c:849:21: warning: duplicate const

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91.c

index e50fa5f863e18a8c612bcd9e99b5782bf44355cc..353c7bf041f294509e23f39c32a1ae56754a497b 100644 (file)
@@ -812,7 +812,7 @@ static int at91_pinctrl_mux_mask(struct at91_pinctrl *info,
 {
        int ret = 0;
        int size;
-       const const __be32 *list;
+       const __be32 *list;
 
        list = of_get_property(np, "atmel,mux-mask", &size);
        if (!list) {
@@ -846,7 +846,7 @@ static int at91_pinctrl_parse_groups(struct device_node *np,
 {
        struct at91_pmx_pin *pin;
        int size;
-       const const __be32 *list;
+       const __be32 *list;
        int i, j;
 
        dev_dbg(info->dev, "group(%d): %s\n", index, np->name);