• Linus Walleij's avatar
    gpio: loongson: Use right include · f105edf7
    Linus Walleij authored
    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: default avatarLinus Walleij <linus.walleij@linaro.org>
    f105edf7
gpio-loongson.c 2.58 KB