diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2017-10-20 12:26:51 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-10-25 11:25:10 +0200 |
commit | d97a1b5688b015d94d0365b032c0659957a9e9d1 (patch) | |
tree | 5362ac52c908724f7b6a18f9ce329cad5c3edefe /drivers/gpio/gpio-loongson1.c | |
parent | gpio: uniphier: add UniPhier GPIO controller driver (diff) | |
download | linux-d97a1b5688b015d94d0365b032c0659957a9e9d1.tar.xz linux-d97a1b5688b015d94d0365b032c0659957a9e9d1.zip |
gpio: dwapb: fix bgpio usage
The DW APB GPIO driver uses the generic GPIO library gpio-mmio,
and initialize the flags as "false", which should be 0.
When no flags are given, the native endianness is used to access
the MMIO registers, and the pin2mask() call can simply be
converted to a BIT() call, as per the default pin2mask()
implementation in gpio-mmio.c.
Acked-by: Alan Tull <atull@kernel.org>
Acked-by: Hoan Tran <hotran@apm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-loongson1.c')
0 files changed, 0 insertions, 0 deletions