diff options
author | Andrew Lunn <andrew@lunn.ch> | 2019-04-28 19:37:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-28 19:41:01 -0400 |
commit | 4dad81ee14479c74973ee669612a367b3a675743 (patch) | |
tree | deb8e24e0569d3e3d5e320f8fc159a5ca019235a /net/dsa/dsa_priv.h | |
parent | c39e2a1d71ade2e59c92280fb2b4daf06b0e240f (diff) | |
download | linux-4dad81ee14479c74973ee669612a367b3a675743.tar.gz linux-4dad81ee14479c74973ee669612a367b3a675743.tar.bz2 linux-4dad81ee14479c74973ee669612a367b3a675743.zip |
dsa: Add stub tag driver put method
When a DSA switch driver is unloaded, the lock on the tag driver
should be released so the module can be unloaded. Add the needed calls,
but leave the actual release code as a stub.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
v2
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r-- | net/dsa/dsa_priv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h index abe3abeb0bb9..ea482e88f7b8 100644 --- a/net/dsa/dsa_priv.h +++ b/net/dsa/dsa_priv.h @@ -85,6 +85,7 @@ struct dsa_slave_priv { /* dsa.c */ const struct dsa_device_ops *dsa_tag_driver_get(int tag_protocol); +void dsa_tag_driver_put(const struct dsa_device_ops *ops); bool dsa_schedule_work(struct work_struct *work); const char *dsa_tag_protocol_to_str(const struct dsa_device_ops *ops); |