Skip to content

Commit

Permalink
net: pse-pd: PSE_REGULATOR should depend on REGULATOR
Browse files Browse the repository at this point in the history
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: 66741b4 ("net: pse-pd: add regulator based PSE driver")
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Oleksij Rempel <[email protected]>
Link: https://lore.kernel.org/r/709caac8873ff2a8b72b92091429be7c1a939959.1664900558.git.geert+renesas@glider.be
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
geertu authored and kuba-moo committed Oct 6, 2022
1 parent af7b29b commit 304ee24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/pse-pd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ if PSE_CONTROLLER

config PSE_REGULATOR
tristate "Regulator based PSE controller"
depends on REGULATOR || COMPILE_TEST
help
This module provides support for simple regulator based Ethernet Power
Sourcing Equipment without automatic classification support. For
Expand Down

0 comments on commit 304ee24

Please sign in to comment.