Skip to content

Commit 0a138f1

Browse files
geertujwrdegoede
authored andcommitted
platform/mellanox: NVSW_SN2201 should depend on ACPI
The only probing method supported by the Nvidia SN2201 platform driver is probing through an ACPI match table. Hence add a dependency on ACPI, to prevent asking the user about this driver when configuring a kernel without ACPI support. Fixes: 662f248 ("platform/mellanox: Add support for new SN2201 system") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Vadim Pasternak <vadimp@nvidia.com> Acked-by: Andi Shyti <andi.shyti@kernel.org> Link: https://lore.kernel.org/r/ec5a4071691ab08d58771b7732a9988e89779268.1693828363.git.geert+renesas@glider.be Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent c2dffda commit 0a138f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/platform/mellanox/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ config MLXBF_PMC
8181

8282
config NVSW_SN2201
8383
tristate "Nvidia SN2201 platform driver support"
84-
depends on HWMON
85-
depends on I2C
84+
depends on HWMON && I2C
85+
depends on ACPI || COMPILE_TEST
8686
select REGMAP_I2C
8787
help
8888
This driver provides support for the Nvidia SN2201 platform.

0 commit comments

Comments
 (0)