]> 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)
commitf60ec23bf342535adcb0e958393bedb0fc7ad31b
tree59772d341533dd3704bf897da6b8cc2dacbc5a67
parentc9e906ec71ad9af675beb6d1b3edb99b9349b710
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