OSDN Git Service

net: dsa: rename teardown_default_cpu to teardown_cpu_ports
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 4 Aug 2021 13:54:29 +0000 (16:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2021 10:05:48 +0000 (11:05 +0100)
commit0e8eb9a16e2569ff72f9d2f43d665e15d52bfa2e
treeb10a17e8f69dcf391db2d63b5e46e50d4692c203
parent0fd75f5760b6a7a7f35dff46a6cdc4f6d1a86ee8
net: dsa: rename teardown_default_cpu to teardown_cpu_ports

There is nothing specific to having a default CPU port to what
dsa_tree_teardown_default_cpu() does. Even with multiple CPU ports,
it would do the same thing: iterate through the ports of this switch
tree and reset the ->cpu_dp pointer to NULL. So rename it accordingly.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c