net: dsa: mt7530: introduce mt7530_probe_common helper function
authorDaniel Golle <daniel@makrotopia.org>
Mon, 3 Apr 2023 01:18:39 +0000 (02:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2023 09:13:00 +0000 (10:13 +0100)
commit37c9c0d8d0b2e24f8c9af72ecd4edd31537284d3
tree7908e7c98f62f7a12f2f9d1b141292ac5f138216
parent25d15dee34a1a40d5fd71636a205e3211f09fd1d
net: dsa: mt7530: introduce mt7530_probe_common helper function

Move commonly used parts from mt7530_probe into new mt7530_probe_common
helper function which will be used by both, mt7530_probe and the
to-be-introduced mt7988_probe.

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