gpio/it8761e: Restrict it8761e gpio driver to x86.
authorGrant Likely <grant.likely@secretlab.ca>
Wed, 11 Jan 2012 18:03:41 +0000 (11:03 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 18 Jan 2012 00:43:09 +0000 (17:43 -0700)
This driver does an unconditional read of io space during module init which
causes a bad dereference on ARM.  It looks to me like this is an x86 only
drivers, so restrict it to only compile on x86.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Denis Turischev <denis@compulab.co.il>
drivers/gpio/Kconfig

index 37c4bd1cacd579bfe66523bc5f371d00af1969b4..d0c41188d4e536b4983857de9c834913f1355c13 100644 (file)
@@ -87,6 +87,7 @@ config GPIO_GENERIC_PLATFORM
 
 config GPIO_IT8761E
        tristate "IT8761E GPIO support"
+       depends on X86  # unconditional access to IO space.
        help
          Say yes here to support GPIO functionality of IT8761E super I/O chip.