Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
platform/mellanox: NVSW_SN2201 should depend on ACPI
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
geertu authored and jwrdegoede committed Sep 11, 2023
1 parent c2dffda commit 0a138f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/platform/mellanox/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ config MLXBF_PMC

config NVSW_SN2201
tristate "Nvidia SN2201 platform driver support"
depends on HWMON
depends on I2C
depends on HWMON && I2C
depends on ACPI || COMPILE_TEST
select REGMAP_I2C
help
This driver provides support for the Nvidia SN2201 platform.
Expand Down

0 comments on commit 0a138f1

Please sign in to comment.