pinctrl: abx500: fix build warning
PATCH 1/1 pinctrl: abx500: fix build warning
From: Patrice Chotard <[email protected]>
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 <[email protected]>
--- drivers/pinctrl/pinctrl-abx500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-abx500.c +1 -1
@@ -506,7 +506,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" ,
Signature · 1 line
1.7.10
Quoted 7 lines · On Tue, Jun 11, 2013 at 10:48 AM, <[email protected]> wrote:
From: Patrice Chotard <[email protected]>
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 <[email protected]>
Patch applied, thanks!
Yours,
Linus Walleij