Commit 1296fba1 authored by Rabin Vincent's avatar Rabin Vincent Committed by Linus Walleij

gpio: etraxfs: fix set register flag

BGPIO_F_UNREADABLE_REG_SET is incorrect, since the set register _is_
readable.  What's really required is BGPIO_F_READ_OUTPUT_REG_SET:
reading the set register reads the set output value.
Signed-off-by: default avatarRabin Vincent <rabin@rab.in>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8cd14702
...@@ -140,7 +140,7 @@ static int etraxfs_gpio_probe(struct platform_device *pdev) ...@@ -140,7 +140,7 @@ static int etraxfs_gpio_probe(struct platform_device *pdev)
NULL, /* clr */ NULL, /* clr */
regs + port->oe, /* dirout */ regs + port->oe, /* dirout */
NULL, /* dirin */ NULL, /* dirin */
BGPIOF_UNREADABLE_REG_SET); BGPIOF_READ_OUTPUT_REG_SET);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment