Skip to content

Commit 304ee24

Browse files
geertukuba-moo
authored andcommitted
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: 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]>
1 parent af7b29b commit 304ee24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/pse-pd/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ if PSE_CONTROLLER
1414

1515
config PSE_REGULATOR
1616
tristate "Regulator based PSE controller"
17+
depends on REGULATOR || COMPILE_TEST
1718
help
1819
This module provides support for simple regulator based Ethernet Power
1920
Sourcing Equipment without automatic classification support. For

0 commit comments

Comments
 (0)