Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: ucb1400: Use proper header

The UCB1400 implements a GPIO driver so it needs to include the
<linux/gpio/driver.h> header, not the legacy <linux/gpio.h> header.
Compile tested on pxa_defconfig.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>

authored by

Linus Walleij and committed by
Bartosz Golaszewski
66df18b3 1e65d136

+2 -1
+1
drivers/gpio/gpio-ucb1400.c
··· 7 7 8 8 #include <linux/module.h> 9 9 #include <linux/ucb1400.h> 10 + #include <linux/gpio/driver.h> 10 11 11 12 static int ucb1400_gpio_dir_in(struct gpio_chip *gc, unsigned off) 12 13 {
+1 -1
include/linux/ucb1400.h
··· 23 23 #include <sound/ac97_codec.h> 24 24 #include <linux/mutex.h> 25 25 #include <linux/platform_device.h> 26 - #include <linux/gpio.h> 26 + #include <linux/gpio/driver.h> 27 27 28 28 /* 29 29 * UCB1400 AC-link registers