Skip to content

Commit

Permalink
arm64: select ARCH_WANT_OPTIONAL_GPIOLIB
Browse files Browse the repository at this point in the history
An architecture should not unconditionally enable 'GENERIC_GPIO'
without providing an implementation. In case of arm64, selecting
ARCH_WANT_OPTIONAL_GPIOLIB is the right solution, because it
lets us enable GPIOLIB when configuring the kernel, and that
implicitly turns on GENERIC_GPIO.

Reported-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Arnd Bergmann authored and Grant Likely committed Feb 22, 2013
1 parent c7886b1 commit 9170100
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm64/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
config ARM64
def_bool y
select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
select ARCH_WANT_OPTIONAL_GPIOLIB
select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
select ARM_AMBA
select CLONE_BACKWARDS
Expand Down Expand Up @@ -92,7 +93,7 @@ config IOMMU_HELPER
def_bool SWIOTLB

config GENERIC_GPIO
def_bool y
bool

source "init/Kconfig"

Expand Down

0 comments on commit 9170100

Please sign in to comment.