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

of_gpio: Should use new <linux/gpio.h> header

Since commit 7560fa60fcdcdb0da662f6a9fad9064b554ef46c (gpio: <linux/gpio.h>
and "no GPIO support here" stubs) drivers can use GPIOs if they're available,
but don't require them.

This patch actually enables this feature.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Wolfgang Grandegger and committed by
Benjamin Herrenschmidt
18ad7a61 ac8a1014

+1 -1
+1 -1
include/linux/of_gpio.h
··· 15 15 #define __LINUX_OF_GPIO_H 16 16 17 17 #include <linux/errno.h> 18 - #include <asm/gpio.h> 18 + #include <linux/gpio.h> 19 19 20 20 #ifdef CONFIG_OF_GPIO 21 21