diff options
author | Patrice Chotard <patrice.chotard@st.com> | 2013-06-11 04:48:21 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-06-16 05:57:33 -0400 |
commit | ce06f40740bc9320e7a22c1964ba408f03c0d013 (patch) | |
tree | 8234b985dcca6f886b49c5551bbb844ff585d900 /drivers/pinctrl | |
parent | d3e5116119bd02ea7716bbe04b39c21bba4bcf42 (diff) |
pinctrl: abx500: fix build warning
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinctrl-abx500.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-abx500.c b/drivers/pinctrl/pinctrl-abx500.c index 378ed3b850e7..84b40f77b944 100644 --- a/drivers/pinctrl/pinctrl-abx500.c +++ b/drivers/pinctrl/pinctrl-abx500.c | |||
@@ -504,7 +504,7 @@ static void abx500_gpio_dbg_show_one(struct seq_file *s, | |||
504 | int mode = -1; | 504 | int mode = -1; |
505 | bool is_out; | 505 | bool is_out; |
506 | bool pd; | 506 | bool pd; |
507 | enum abx500_gpio_pull_updown pud; | 507 | enum abx500_gpio_pull_updown pud = 0; |
508 | 508 | ||
509 | const char *modes[] = { | 509 | const char *modes[] = { |
510 | [ABX500_DEFAULT] = "default", | 510 | [ABX500_DEFAULT] = "default", |