gpio: loongson: Use right include
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 13 Apr 2018 08:28:21 +0000 (10:28 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 16 May 2018 12:35:24 +0000 (14:35 +0200)
commitf105edf70011859b33c3309f9c5ea96395cb616c
treec4b8ddd526287f138ca1ba6c9b5b4ff361c6a26c
parenta411e81e61df24023f40255145d8f023402002c9
gpio: loongson: Use right include

The driver includes <linux/gpio.h> which is wrong, rely on
<linux/gpio/driver.h> and remove to call to gpio_set_value() in
favor of calling the internal function. Move functions around to
avoid forward declarations.

Cc: Keguang Zhang <keguang.zhang@gmail.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Huacai Chen <chenhc@lemote.com>
Cc: linux-mips@linux-mips.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-loongson.c