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>
This commit is contained in:
committed by
Jakub Kicinski
parent
05f294a852
commit
7e99e34701
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user