net: dsa: mt7530: introduce mt7530_remove_common helper function
authorDaniel Golle <daniel@makrotopia.org>
Mon, 3 Apr 2023 01:18:50 +0000 (02:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2023 09:13:00 +0000 (10:13 +0100)
commit720d736351761574af02ed093658ab60de60576c
tree0bffeab9a333135304bbf86b6945857332b1ba19
parent37c9c0d8d0b2e24f8c9af72ecd4edd31537284d3
net: dsa: mt7530: introduce mt7530_remove_common helper function

Move commonly used parts from mt7530_remove into new
mt7530_remove_common helper function which will be used by both,
mt7530_remove and the to-be-introduced mt7988_remove.

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