net: dsa: move rest of devlink setup/teardown to devlink.c
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 21 Nov 2022 13:55:43 +0000 (15:55 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Nov 2022 04:41:47 +0000 (20:41 -0800)
commit7aea535d40eaba97cb116ba2b30ecd897eee0f43
treeceb6cbba7dd97ea124722f104ae09ba53bd86ebe
parentd95fa75061fbd09a7ae78a76bc8902a84b8538a5
net: dsa: move rest of devlink setup/teardown to devlink.c

The code that needed further refactoring into dedicated functions in
dsa2.c was left aside. Move it now to devlink.c, and make dsa2.c stop
including net/devlink.h.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/devlink.c
net/dsa/devlink.h
net/dsa/dsa2.c