net: dsa: remove dsa_port_phylink_validate()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 9 Oct 2023 10:39:55 +0000 (11:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Oct 2023 09:06:05 +0000 (10:06 +0100)
commit63b9f7a19ff154778cef85cf9a28f31c4a77e847
treef460bc4e4e8acc5e216ebea19907e943d8801c34
parentdb2c6d5fc4bddd15a98cc7964cec0af7a51160c0
net: dsa: remove dsa_port_phylink_validate()

As all drivers now provide phylink capabilities (including MAC), the
if() condition in dsa_port_phylink_validate() will always be true. We
will always use the generic validator, which phylink will call itself
if the .validate method isn't populated. Thus, there is now no need to
implement the .validate method, so this implementation can be removed.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/port.c