Commit 304ee24b authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Jakub Kicinski

net: pse-pd: PSE_REGULATOR should depend on REGULATOR

The Regulator based PSE controller driver relies on regulator support to
be enabled.  If regulator support is disabled, it will still compile
fine, but won't operate correctly.

Hence add a dependency on REGULATOR, to prevent asking the user about
this driver when configuring a kernel without regulator support.

Fixes: 66741b4e ("net: pse-pd: add regulator based PSE driver")
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/709caac8873ff2a8b72b92091429be7c1a939959.1664900558.git.geert+renesas@glider.beSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent af7b29b1
...@@ -14,6 +14,7 @@ if PSE_CONTROLLER ...@@ -14,6 +14,7 @@ if PSE_CONTROLLER
config PSE_REGULATOR config PSE_REGULATOR
tristate "Regulator based PSE controller" tristate "Regulator based PSE controller"
depends on REGULATOR || COMPILE_TEST
help help
This module provides support for simple regulator based Ethernet Power This module provides support for simple regulator based Ethernet Power
Sourcing Equipment without automatic classification support. For Sourcing Equipment without automatic classification support. For
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment