Skip to content

Commit d33d225

Browse files
niklas88Tzung-Bi Shih
authored andcommitted
platform/chrome: add HAS_IOPORT dependencies
In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at compile time. We thus need to add HAS_IOPORT as dependency for those drivers using them. Co-developed-by: Arnd Bergmann <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Niklas Schnelle <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tzung-Bi Shih <[email protected]>
1 parent 945c7c6 commit d33d225

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/platform/chrome/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ config CROS_EC_UART
132132
config CROS_EC_LPC
133133
tristate "ChromeOS Embedded Controller (LPC)"
134134
depends on CROS_EC && ACPI && (X86 || COMPILE_TEST)
135+
depends on HAS_IOPORT
135136
help
136137
If you say Y here, you get support for talking to the ChromeOS EC
137138
over an LPC bus, including the LPC Microchip EC (MEC) variant.

drivers/platform/chrome/wilco_ec/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ config WILCO_EC
33
tristate "ChromeOS Wilco Embedded Controller"
44
depends on X86 || COMPILE_TEST
55
depends on ACPI && CROS_EC_LPC && LEDS_CLASS
6+
depends on HAS_IOPORT
67
help
78
If you say Y here, you get support for talking to the ChromeOS
89
Wilco EC over an eSPI bus. This uses a simple byte-level protocol

0 commit comments

Comments
 (0)