mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
net: dsa: Remove allocation of driver private memory
The drivers now allocate their own memory for private usage. Remove the allocation from the core code. Signed-off-by: Andrew Lunn <[email protected]> Acked-by: Florian Fainelli <[email protected]> Tested-by: Vivien Didelot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
committed by
David S. Miller
parent
7543a6d535
commit
5feebd0a8a
@@ -213,7 +213,6 @@ struct dsa_switch_driver {
|
||||
struct list_head list;
|
||||
|
||||
enum dsa_tag_protocol tag_protocol;
|
||||
int priv_size;
|
||||
|
||||
/*
|
||||
* Probing and setup.
|
||||
|
||||
+1
-1
@@ -402,7 +402,7 @@ dsa_switch_setup(struct dsa_switch_tree *dst, int index,
|
||||
/*
|
||||
* Allocate and initialise switch state.
|
||||
*/
|
||||
ds = devm_kzalloc(parent, sizeof(*ds) + drv->priv_size, GFP_KERNEL);
|
||||
ds = devm_kzalloc(parent, sizeof(*ds), GFP_KERNEL);
|
||||
if (ds == NULL)
|
||||
return ERR_PTR(-ENOMEM);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user