diff options
author | Rabin Vincent <rabin@rab.in> | 2015-07-22 15:05:17 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-07-27 14:59:30 +0200 |
commit | 1296fba1a397b173d45534885a0934a7c005d7e3 (patch) | |
tree | 33816aebabf423955a4a249edf975783a2c2473f /drivers/gpio/gpio-etraxfs.c | |
parent | 8cd14702be9bcb2ec45e1ec30af04aea9b965708 (diff) | |
download | linux-stable-1296fba1a397b173d45534885a0934a7c005d7e3.tar.gz linux-stable-1296fba1a397b173d45534885a0934a7c005d7e3.tar.bz2 linux-stable-1296fba1a397b173d45534885a0934a7c005d7e3.zip |
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: Rabin Vincent <rabin@rab.in>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-etraxfs.c')
-rw-r--r-- | drivers/gpio/gpio-etraxfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-etraxfs.c b/drivers/gpio/gpio-etraxfs.c index 0e643140efde..625a9ed411da 100644 --- a/drivers/gpio/gpio-etraxfs.c +++ b/drivers/gpio/gpio-etraxfs.c @@ -140,7 +140,7 @@ static int etraxfs_gpio_probe(struct platform_device *pdev) NULL, /* clr */ regs + port->oe, /* dirout */ NULL, /* dirin */ - BGPIOF_UNREADABLE_REG_SET); + BGPIOF_READ_OUTPUT_REG_SET); if (ret) return ret; |