aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorAndrew Lunn <[email protected]>2019-04-28 17:37:18 +0000
committerDavid S. Miller <[email protected]>2019-04-28 23:41:01 +0000
commitc39e2a1d71ade2e59c92280fb2b4daf06b0e240f (patch)
tree59772d341533dd3704bf897da6b8cc2dacbc5a67 /net/dsa/dsa.c
parentdsa: Register the none tagger ops (diff)
downloadkernel-c39e2a1d71ade2e59c92280fb2b4daf06b0e240f.tar.gz
kernel-c39e2a1d71ade2e59c92280fb2b4daf06b0e240f.zip
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 <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
-rw-r--r--net/dsa/dsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index 71907acd8f82..0a68d784ea18 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -123,7 +123,7 @@ const char *dsa_tag_protocol_to_str(const struct dsa_device_ops *ops)
return ops->name;
};
-const struct dsa_device_ops *dsa_resolve_tag_protocol(int tag_protocol)
+const struct dsa_device_ops *dsa_tag_driver_get(int tag_protocol)
{
const struct dsa_device_ops *ops;