提交 ce06f407 编写于 作者: P Patrice Chotard 提交者: Linus Walleij

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: NPatrice Chotard <patrice.chotard@st.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 d3e51161
...@@ -504,7 +504,7 @@ static void abx500_gpio_dbg_show_one(struct seq_file *s, ...@@ -504,7 +504,7 @@ static void abx500_gpio_dbg_show_one(struct seq_file *s,
int mode = -1; int mode = -1;
bool is_out; bool is_out;
bool pd; bool pd;
enum abx500_gpio_pull_updown pud; enum abx500_gpio_pull_updown pud = 0;
const char *modes[] = { const char *modes[] = {
[ABX500_DEFAULT] = "default", [ABX500_DEFAULT] = "default",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册