Skip to content

Commit 265fe02

Browse files
committed
gpio/it8761e: Restrict it8761e gpio driver to x86.
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 <[email protected]> Cc: Denis Turischev <[email protected]>
1 parent dd9328a commit 265fe02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ config GPIO_GENERIC_PLATFORM
8787

8888
config GPIO_IT8761E
8989
tristate "IT8761E GPIO support"
90+
depends on X86 # unconditional access to IO space.
9091
help
9192
Say yes here to support GPIO functionality of IT8761E super I/O chip.
9293

0 commit comments

Comments
 (0)