diff options
64 files changed, 76 insertions, 155 deletions
diff --git a/Documentation/gpio.txt b/Documentation/gpio.txt index 77a1d11af723..6f83fa965b4b 100644 --- a/Documentation/gpio.txt +++ b/Documentation/gpio.txt | |||
| @@ -72,11 +72,11 @@ in this document, but drivers acting as clients to the GPIO interface must | |||
| 72 | not care how it's implemented.) | 72 | not care how it's implemented.) |
| 73 | 73 | ||
| 74 | That said, if the convention is supported on their platform, drivers should | 74 | That said, if the convention is supported on their platform, drivers should |
| 75 | use it when possible. Platforms must declare GENERIC_GPIO support in their | 75 | use it when possible. Platforms must select ARCH_REQUIRE_GPIOLIB or |
| 76 | Kconfig (boolean true), and provide an <asm/gpio.h> file. Drivers that can't | 76 | ARCH_WANT_OPTIONAL_GPIOLIB in their Kconfig. Drivers that can't work without |
| 77 | work without standard GPIO calls should have Kconfig entries which depend | 77 | standard GPIO calls should have Kconfig entries which depend on GPIOLIB. The |
| 78 | on GENERIC_GPIO. The GPIO calls are available, either as "real code" or as | 78 | GPIO calls are available, either as "real code" or as optimized-away stubs, |
| 79 | optimized-away stubs, when drivers use the include file: | 79 | when drivers use the include file: |
| 80 | 80 | ||
| 81 | #include <linux/gpio.h> | 81 | #include <linux/gpio.h> |
| 82 | 82 | ||
diff --git a/Documentation/zh_CN/gpio.txt b/Documentation/zh_CN/gpio.txt index 4fa7b4e6f856..d5b8f01833f4 100644 --- a/Documentation/zh_CN/gpio.txt +++ b/Documentation/zh_CN/gpio.txt | |||
| @@ -84,10 +84,10 @@ GPIO 公约 | |||
| 84 | 控制器的抽象函数来实现它。(有一些可选的代码能支持这种策略的实现,本文档 | 84 | 控制器的抽象函数来实现它。(有一些可选的代码能支持这种策略的实现,本文档 |
| 85 | 后面会介绍,但作为 GPIO 接口的客户端驱动程序必须与它的实现无关。) | 85 | 后面会介绍,但作为 GPIO 接口的客户端驱动程序必须与它的实现无关。) |
| 86 | 86 | ||
| 87 | 也就是说,如果在他们的平台上支持这个公约,驱动应尽可能的使用它。平台 | 87 | 也就是说,如果在他们的平台上支持这个公约,驱动应尽可能的使用它。时,台 |
| 88 | 必须在 Kconfig 中声对 GENERIC_GPIO的支持 (布尔型 true),并供 | 88 | 必须在 Kconfig 中选 ARCH_REQUIRE_GPIOLIB 者 ARCH_WANT_OPTIONAL_GPIOLIB |
| 89 | 个 <asm/gpio.h> 文件。那些调用标准 GPIO 函数的驱动应该在 Kconfig | 89 | 项。那些调用标准 GPIO 函数的驱动应该在 Kconfig 入口中声明依赖GENERIC_GPIO。 |
| 90 | 口中声明依赖GENERIC_GPIO。驱动包含文件: | 90 | 当驱动包含文件: |
| 91 | 91 | ||
| 92 | #include <linux/gpio.h> | 92 | #include <linux/gpio.h> |
| 93 | 93 | ||
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig index 8629127640cf..837a1f2d8b96 100644 --- a/arch/alpha/Kconfig +++ b/arch/alpha/Kconfig | |||
| @@ -55,9 +55,6 @@ config GENERIC_CALIBRATE_DELAY | |||
| 55 | bool | 55 | bool |
| 56 | default y | 56 | default y |
| 57 | 57 | ||
| 58 | config GENERIC_GPIO | ||
| 59 | bool | ||
| 60 | |||
| 61 | config ZONE_DMA | 58 | config ZONE_DMA |
| 62 | bool | 59 | bool |
| 63 | default y | 60 | default y |
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index aa71a2321040..46e2b5228606 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
| @@ -109,9 +109,6 @@ config MIGHT_HAVE_PCI | |||
| 109 | config SYS_SUPPORTS_APM_EMULATION | 109 | config SYS_SUPPORTS_APM_EMULATION |
| 110 | bool | 110 | bool |
| 111 | 111 | ||
| 112 | config GENERIC_GPIO | ||
| 113 | bool | ||
| 114 | |||
| 115 | config HAVE_TCM | 112 | config HAVE_TCM |
| 116 | bool | 113 | bool |
| 117 | select GENERIC_ALLOCATOR | 114 | select GENERIC_ALLOCATOR |
diff --git a/arch/arm/plat-orion/Makefile b/arch/arm/plat-orion/Makefile index 2eca54b65906..9433605cd290 100644 --- a/arch/arm/plat-orion/Makefile +++ b/arch/arm/plat-orion/Makefile | |||
| @@ -3,6 +3,6 @@ | |||
| 3 | # | 3 | # |
| 4 | ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include | 4 | ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include |
| 5 | 5 | ||
| 6 | orion-gpio-$(CONFIG_GENERIC_GPIO) += gpio.o | 6 | orion-gpio-$(CONFIG_GPIOLIB) += gpio.o |
| 7 | obj-$(CONFIG_PLAT_ORION_LEGACY) += irq.o pcie.o time.o common.o mpp.o | 7 | obj-$(CONFIG_PLAT_ORION_LEGACY) += irq.o pcie.o time.o common.o mpp.o |
| 8 | obj-$(CONFIG_PLAT_ORION_LEGACY) += $(orion-gpio-y) | 8 | obj-$(CONFIG_PLAT_ORION_LEGACY) += $(orion-gpio-y) |
diff --git a/arch/arm/plat-orion/gpio.c b/arch/arm/plat-orion/gpio.c index e39c2ba6e2fb..249fe6333e18 100644 --- a/arch/arm/plat-orion/gpio.c +++ b/arch/arm/plat-orion/gpio.c | |||
| @@ -150,7 +150,7 @@ err_out: | |||
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | /* | 152 | /* |
| 153 | * GENERIC_GPIO primitives. | 153 | * GPIO primitives. |
| 154 | */ | 154 | */ |
| 155 | static int orion_gpio_request(struct gpio_chip *chip, unsigned pin) | 155 | static int orion_gpio_request(struct gpio_chip *chip, unsigned pin) |
| 156 | { | 156 | { |
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 43b0e9f10a39..48347dcf0566 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig | |||
| @@ -95,9 +95,6 @@ config SWIOTLB | |||
| 95 | config IOMMU_HELPER | 95 | config IOMMU_HELPER |
| 96 | def_bool SWIOTLB | 96 | def_bool SWIOTLB |
