]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb0b2bc7f3f46b118236d6274c6806cf9fc26fbc
tree59772d341533dd3704bf897da6b8cc2dacbc5a67
parent523bde9cf65917e3357e95e141deac9ff8f11c43
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