diff options
author | Vivien Didelot <vivien.didelot@gmail.com> | 2019-10-21 22:51:30 +0200 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-22 21:37:07 +0200 |
commit | 7e99e34701728d54ccd0466eccf377a42b9db215 (patch) | |
tree | 9047ed67e960bddc994b2bf7a4ecbb8fa0c8ca16 /include | |
parent | net: dsa: allocate ports on touch (diff) | |
download | linux-7e99e34701728d54ccd0466eccf377a42b9db215.tar.xz linux-7e99e34701728d54ccd0466eccf377a42b9db215.zip |
net: dsa: remove dsa_switch_alloc helper
Now that ports are dynamically listed in the fabric, there is no need
to provide a special helper to allocate the dsa_switch structure. This
will give more flexibility to drivers to embed this structure as they
wish in their private structure.
Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/dsa.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 9bc1d3f71f89..e3c14dc3bab9 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -577,7 +577,6 @@ static inline bool dsa_can_decode(const struct sk_buff *skb, return false; } -struct dsa_switch *dsa_switch_alloc(struct device *dev, size_t n); void dsa_unregister_switch(struct dsa_switch *ds); int dsa_register_switch(struct dsa_switch *ds); #ifdef CONFIG_PM_SLEEP |