OSDN Git Service

dsa: Rename dsa_resolve_tag_protocol() to _get ready for locking
authorAndrew Lunn <andrew@lunn.ch>
Sun, 28 Apr 2019 17:37:18 +0000 (19:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Apr 2019 23:41:01 +0000 (19:41 -0400)
commitc39e2a1d71ade2e59c92280fb2b4daf06b0e240f
tree59772d341533dd3704bf897da6b8cc2dacbc5a67
parent409065b069b93c8d280a35e83138ceaf020f98e6
dsa: Rename dsa_resolve_tag_protocol() to _get ready for locking

dsa_resolve_tag_protocol() is used to find the tagging driver needed
by a switch driver. When the tagging drivers become modules, it will
be necassary to take a reference on the module to prevent it being
unloaded. So rename this function to _get() to indicate it has some
locking properties.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c
net/dsa/dsa2.c
net/dsa/dsa_priv.h
net/dsa/legacy.c