Skip to content

Commit d94ffb9

Browse files
geertuandy-shev
authored andcommitted
sh: mach-x3proto: Add missing #include <linux/gpio/driver.h>
shx3_defconfig: arch/sh/boards/mach-x3proto/setup.c: In function ‘x3proto_devices_setup’: arch/sh/boards/mach-x3proto/setup.c:246:62: error: invalid use of undefined type ‘struct gpio_chip’ 246 | baseboard_buttons[i].gpio = x3proto_gpio_chip.base + i; | ^ Fix this by replacing the include of the legacy <linux/gpio.h> by <linux/gpio/driver.h>. Reported-by: Linux Kernel Functional Testing <lkft@linaro.org> Link: https://lore.kernel.org/r/CA+G9fYs7suzGsEDK40G0pzxXyR1o2V4Pn-oy1owTsTWRVEVHog@mail.gmail.com Fixes: 21d9526 ("gpiolib: Make the legacy <linux/gpio.h> consumer-only") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent 559e4a3 commit d94ffb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/sh/boards/mach-x3proto/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <linux/input.h>
1717
#include <linux/usb/r8a66597.h>
1818
#include <linux/usb/m66592.h>
19-
#include <linux/gpio.h>
19+
#include <linux/gpio/driver.h>
2020
#include <linux/gpio_keys.h>
2121
#include <mach/ilsel.h>
2222
#include <mach/hardware.h>

0 commit comments

Comments
 (0)