diff options
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r-- | net/dsa/slave.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 64c5af0a10dd..45a1e34c89e0 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -340,8 +340,8 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent, | |||
340 | struct dsa_slave_priv *p; | 340 | struct dsa_slave_priv *p; |
341 | int ret; | 341 | int ret; |
342 | 342 | ||
343 | slave_dev = alloc_netdev(sizeof(struct dsa_slave_priv), | 343 | slave_dev = alloc_netdev(sizeof(struct dsa_slave_priv), name, |
344 | name, ether_setup); | 344 | NET_NAME_UNKNOWN, ether_setup); |
345 | if (slave_dev == NULL) | 345 | if (slave_dev == NULL) |
346 | return slave_dev; | 346 | return slave_dev; |
347 | 347 | ||