Skip to content

Commit c45b8cf

Browse files
geertuWim Van Sebroeck
authored andcommitted
watchdog: LENOVO_SE10_WDT should depend on X86 && DMI
The Lenovo SE10 watchdog is only present on Lenovo ThinkEdge SE10 platforms, which are based on Intel Atom SoCs, and its driver relies on DMI tables. Hence add dependencies on X86 && DMI, to prevent asking the user about this driver when configuring a kernel without Intel Atom or DMI support. While at it, fix the odd indentation (spaces instead of TABs). Fixes: 1f6602c ("watchdog: lenovo_se10_wdt: Watchdog driver for Lenovo SE10 platform") Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Mark Pearson <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/58005595a05ef803b454b78d3ae9b8ee0675bd5d.1715076440.git.geert+renesas@glider.be Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 413bf4e commit c45b8cf

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

drivers/watchdog/Kconfig

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,15 @@ config GPIO_WATCHDOG_ARCH_INITCALL
255255
If in doubt, say N.
256256

257257
config LENOVO_SE10_WDT
258-
tristate "Lenovo SE10 Watchdog"
259-
select WATCHDOG_CORE
260-
help
261-
If you say yes here you get support for the watchdog
262-
functionality for the Lenovo SE10 platform.
263-
264-
This driver can also be built as a module. If so, the module
265-
will be called lenovo-se10-wdt.
258+
tristate "Lenovo SE10 Watchdog"
259+
depends on (X86 && DMI) || COMPILE_TEST
260+
select WATCHDOG_CORE
261+
help
262+
If you say yes here you get support for the watchdog
263+
functionality for the Lenovo SE10 platform.
264+
265+
This driver can also be built as a module. If so, the module
266+
will be called lenovo-se10-wdt.
266267

267268
config MENF21BMC_WATCHDOG
268269
tristate "MEN 14F021P00 BMC Watchdog"

0 commit comments

Comments
 (0)