gpio: loongson1: fix bgpio usage
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Oct 2017 12:42:01 +0000 (14:42 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 25 Oct 2017 09:25:38 +0000 (11:25 +0200)
commitfe29416b5ca2f80b43622ac3023ed9cd0c1ce777
treeb2c61c8ac5438680e96db2c98fba1e10d4d641d6
parentd97a1b5688b015d94d0365b032c0659957a9e9d1
gpio: loongson1: fix bgpio usage

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.

Cc: Kelvin Cheung <keguang.zhang@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-loongson1.c