net: dsa: sja1105: use xpcs_create_mdiodev()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 2 Jun 2023 13:58:40 +0000 (14:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jun 2023 10:26:02 +0000 (11:26 +0100)
commitbf9a17b04c85345df6e53e4058a56513f41265cf
tree461826bdb81ff3e69de2a6d15d70bceda8762536
parent9607eaadba68732b76c744bd22635fb1da5a7622
net: dsa: sja1105: use xpcs_create_mdiodev()

Use the new xpcs_create_mdiodev() creator, which simplifies the
creation and destruction of the mdio device associated with xpcs.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_mdio.c