]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: phy: remove redundant dependency on NETDEVICES for PHYLINK and PHYLIB
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 13 Apr 2025 21:23:25 +0000 (23:23 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 16 Apr 2025 00:21:19 +0000 (17:21 -0700)
drivers/net/phy/Kconfig is included from drivers/net/Kconfig in an
"if NETDEVICES" section. Therefore we don't have to duplicate the
dependency here. And if e.g. PHYLINK is selected somewhere, then the
dependency is ignored anyway (see note in Kconfig help).

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/085892cd-aa11-4c22-bf8a-574a5c6dcd7c@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/Kconfig

index d29f9f7fd2e110415496f322b2936c903cbc4d9c..0b8cc325e2bf856fb466717e22247067ba3a6e4e 100644 (file)
@@ -5,7 +5,6 @@
 
 config PHYLINK
        tristate
-       depends on NETDEVICES
        select PHYLIB
        select SWPHY
        help
@@ -15,7 +14,6 @@ config PHYLINK
 
 menuconfig PHYLIB
        tristate "PHY Device support and infrastructure"
-       depends on NETDEVICES
        select MDIO_DEVICE
        select MDIO_DEVRES
        help