pinctrl: abx500: fix build warning
authorPatrice Chotard <patrice.chotard@st.com>
Tue, 11 Jun 2013 08:48:21 +0000 (10:48 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 16 Jun 2013 09:57:33 +0000 (11:57 +0200)
pinctrl-abx500.c: In function 'abx500_gpio_dbg_show_one':
pinctrl-abx500.c:534:14: warning: 'pud' may be used
uninitialized in this function [-Wuninitialized]

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-abx500.c

index 378ed3b850e7d534856798064bb21a719829dc71..84b40f77b94405612a61091f9c7f001ce4800b0a 100644 (file)
@@ -504,7 +504,7 @@ static void abx500_gpio_dbg_show_one(struct seq_file *s,
        int mode = -1;
        bool is_out;
        bool pd;
-       enum abx500_gpio_pull_updown pud;
+       enum abx500_gpio_pull_updown pud = 0;
 
        const char *modes[] = {
                [ABX500_DEFAULT]        = "default",
This page took 0.024479 seconds and 5 git commands to generate.