diff options
author | Andrew Lunn <andrew@lunn.ch> | 2019-04-28 13:37:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-28 19:41:01 -0400 |
commit | c39e2a1d71ade2e59c92280fb2b4daf06b0e240f (patch) | |
tree | 59772d341533dd3704bf897da6b8cc2dacbc5a67 /net/dsa/legacy.c | |
parent | 409065b069b93c8d280a35e83138ceaf020f98e6 (diff) |
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>
Diffstat (limited to 'net/dsa/legacy.c')
-rw-r--r-- | net/dsa/legacy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/legacy.c b/net/dsa/legacy.c index cb42939db776..a8c076250237 100644 --- a/net/dsa/legacy.c +++ b/net/dsa/legacy.c | |||
@@ -152,7 +152,7 @@ static int dsa_switch_setup_one(struct dsa_switch *ds, | |||
152 | enum dsa_tag_protocol tag_protocol; | 152 | enum dsa_tag_protocol tag_protocol; |
153 | 153 | ||
154 | tag_protocol = ops->get_tag_protocol(ds, dst->cpu_dp->index); | 154 | tag_protocol = ops->get_tag_protocol(ds, dst->cpu_dp->index); |
155 | tag_ops = dsa_resolve_tag_protocol(tag_protocol); | 155 | tag_ops = dsa_tag_driver_get(tag_protocol); |
156 | if (IS_ERR(tag_ops)) | 156 | if (IS_ERR(tag_ops)) |
157 | return PTR_ERR(tag_ops); | 157 | return PTR_ERR(tag_ops); |
158 | 158 | ||