From 177ef27be229279607eb8ec59ab1e2fe6e604388 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 17 Jul 2012 11:35:09 -0400 Subject: [PATCH 027/123] 835-gpiodev Import of the above patch from openwrt trunk, as of this commit: ---------- commit c1d79f64eed0a7ac36b5b9bca52275b397bec424 Author: nbd Date: Mon Jul 16 16:26:51 2012 +0000 uboot-ar71xx: fix compile on recent mac os x versions git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32750 3c298f89-4303-0410-b956-a3cf2f4a3e73 ---------- Path to patch in the repo is: target/linux/generic/patches-3.3 Repo is: git://nbd.name/openwrt.git Signed-off-by: Paul Gortmaker --- drivers/char/Kconfig | 8 ++++++++ drivers/char/Makefile | 1 + 2 files changed, 9 insertions(+) diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index ee94686..d5d58db 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig @@ -496,6 +496,14 @@ config NSC_GPIO pc8736x_gpio drivers. If those drivers are built as modules, this one will be too, named nsc_gpio +config GPIO_DEVICE + tristate "GPIO device support" + depends on GENERIC_GPIO + help + Say Y to enable Linux GPIO device support. This allows control of + GPIO pins using a character device + + config RAW_DRIVER tristate "RAW driver (/dev/raw/rawN)" depends on BLOCK diff --git a/drivers/char/Makefile b/drivers/char/Makefile index 0dc5d7c..7637df1 100644 --- a/drivers/char/Makefile +++ b/drivers/char/Makefile @@ -46,6 +46,7 @@ obj-$(CONFIG_NWFLASH) += nwflash.o obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o obj-$(CONFIG_PC8736x_GPIO) += pc8736x_gpio.o obj-$(CONFIG_NSC_GPIO) += nsc_gpio.o +obj-$(CONFIG_GPIO_DEVICE) += gpio_dev.o obj-$(CONFIG_GPIO_TB0219) += tb0219.o obj-$(CONFIG_TELCLOCK) += tlclk.o -- 1.7.9.7