]> git.baikalelectronics.ru Git - kernel.git/commit
net: pse-pd: PSE_REGULATOR should depend on REGULATOR
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 4 Oct 2022 16:23:53 +0000 (18:23 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Oct 2022 03:32:28 +0000 (20:32 -0700)
commit40c241fccfbdb8e8eb1d2ad7386e038a41f78425
tree55ba0d48e312b44743858e5c7c03c8c2fd3f3be5
parent196410e769f0f2a2f0c4e68456f9d296394748ef
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: 77f55dec0b147be1 ("net: pse-pd: add regulator based PSE driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/709caac8873ff2a8b72b92091429be7c1a939959.1664900558.git.geert+renesas@glider.be
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/pse-pd/Kconfig