net: dpaa2-mac: remove interface checks in dpaa2_mac_validate()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 17 Nov 2021 17:24:07 +0000 (17:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Nov 2021 11:38:44 +0000 (11:38 +0000)
commit22de481d23c90727510c9c4a37b89deb34e6ba3a
treee9b4c443d358272af5330c624c193d41dda36d42
parent15d0b14cec1c3ee3739d15fdcec3ebe1b847dd7c
net: dpaa2-mac: remove interface checks in dpaa2_mac_validate()

As phylink checks the interface mode against the supported_interfaces
bitmap, we no longer need to validate the interface mode, nor handle
PHY_INTERFACE_MODE_NA in the validation function. Remove these to
simplify the implementation.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c