]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pinctrl: samsung: Do not initialise statics to 0
authorSachin Kamat <sachin.kamat@linaro.org>
Sat, 24 Nov 2012 02:20:51 +0000 (11:20 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Sat, 24 Nov 2012 02:20:51 +0000 (11:20 +0900)
Static variables are initialised to 0 by GCC.
Fixes the following checkpatch error:
ERROR: do not initialise statics to 0 or NULL
FILE: pinctrl/pinctrl-samsung.c:50:
static unsigned int pin_base = 0;

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
drivers/pinctrl/pinctrl-samsung.c

index 3b52c17c4fd216e5ba20e87da976c70c41e1e316..8f31b656c4e95be33ad04d7256f9594286f37a56 100644 (file)
@@ -47,7 +47,7 @@ struct pin_config {
        { "samsung,pin-pud-pdn", PINCFG_TYPE_PUD_PDN },
 };
 
-static unsigned int pin_base = 0;
+static unsigned int pin_base;
 
 static inline struct samsung_pin_bank *gc_to_pin_bank(struct gpio_chip *gc)
 {