net: dsa: mt7530: split-off common parts from mt7531_setup
authorDaniel Golle <daniel@makrotopia.org>
Mon, 3 Apr 2023 01:19:02 +0000 (02:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:38 +0000 (11:53 +0200)
commit9d46edd93aa4132079970b8e155ffa7ad21bf6fa
treeeff12598c6dc4341d3e39e70ea719229c91b8a85
parent98fc75c172ba4b115a4ac233cddfc852d9f9b040
net: dsa: mt7530: split-off common parts from mt7531_setup

[ Upstream commit 7f54cc9772ced2d76ac11832f0ada43798443ac9 ]

MT7988 shares a significant part of the setup function with MT7531.
Split-off those parts into a shared function which is going to be used
also by mt7988_setup.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 120a56b01bee ("net: dsa: mt7530: fix network connectivity with multiple CPU ports")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/mt7530.c