net: dsa: mt7530: move SGMII PCS creation to mt7530_probe function
authorDaniel Golle <daniel@makrotopia.org>
Mon, 3 Apr 2023 01:18:04 +0000 (02:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2023 09:13:00 +0000 (10:13 +0100)
commit6de2852297737171ba96b91e89bf302ca1fda869
treed06d34a2a1cd3554ec3dc0f5cd938a3d2275b636
parenta08c045580e060a6886bbb656c50ae20b0c780b5
net: dsa: mt7530: move SGMII PCS creation to mt7530_probe function

Move creating the SGMII PCS from mt753x_setup() to the more appropriate
mt7530_probe() function.
This is done also in preparation of moving all functions related to
MDIO-connected MT753x switches to a separate module.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c