net: dsa: remove tree functions related to switches
authorVivien Didelot <vivien.didelot@gmail.com>
Thu, 31 Oct 2019 02:09:17 +0000 (22:09 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 21:26:38 +0000 (14:26 -0700)
commit8e5cb84c67e085ad4d8005dcecba3201f2b54504
tree1fc9da7a6c7508cf8daba2021ca91513ce8e9886
parent9c8ad1ab66b577526a4c89e4a222e0fac431a2d6
net: dsa: remove tree functions related to switches

The DSA fabric setup code has been simplified a lot so get rid of
the dsa_tree_remove_switch, dsa_tree_add_switch and dsa_switch_add
helpers, and keep the code simple with only the dsa_switch_probe and
dsa_switch_remove functions.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c