refresh generic 2.6.25 patches
[lede.git] / target / linux / generic-2.6 / patches-2.6.25 / 420-gpiodev.patch
1 Index: linux-2.6.25.4/drivers/gpio/Kconfig
2 ===================================================================
3 --- linux-2.6.25.4.orig/drivers/gpio/Kconfig
4 +++ linux-2.6.25.4/drivers/gpio/Kconfig
5 @@ -2,6 +2,13 @@
6  # GPIO infrastructure and expanders
7  #
8  
9 +config GPIO_DEVICE
10 +       tristate "GPIO device support"
11 +       depends on GENERIC_GPIO
12 +       help
13 +         Say Y to enable Linux GPIO device support.  This allows control of
14 +         GPIO pins using a character device
15 +
16  config HAVE_GPIO_LIB
17         bool
18         help
19 Index: linux-2.6.25.4/drivers/gpio/Makefile
20 ===================================================================
21 --- linux-2.6.25.4.orig/drivers/gpio/Makefile
22 +++ linux-2.6.25.4/drivers/gpio/Makefile
23 @@ -7,3 +7,4 @@ obj-$(CONFIG_HAVE_GPIO_LIB)     += gpiolib.o
24  obj-$(CONFIG_GPIO_MCP23S08)    += mcp23s08.o
25  obj-$(CONFIG_GPIO_PCA953X)     += pca953x.o
26  obj-$(CONFIG_GPIO_PCF857X)     += pcf857x.o
27 +obj-$(CONFIG_GPIO_DEVICE)      += gpio_dev.o