diff options
Diffstat (limited to 'net/8021q/vlan.c')
-rw-r--r-- | net/8021q/vlan.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 55d2135889fc..dc1071327d87 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c | |||
@@ -272,13 +272,11 @@ static int register_vlan_device(struct net_device *real_dev, u16 vlan_id) | |||
272 | snprintf(name, IFNAMSIZ, "vlan%.4i", vlan_id); | 272 | snprintf(name, IFNAMSIZ, "vlan%.4i", vlan_id); |
273 | } | 273 | } |
274 | 274 | ||
275 | new_dev = alloc_netdev_mq(sizeof(struct vlan_dev_info), name, | 275 | new_dev = alloc_netdev(sizeof(struct vlan_dev_info), name, vlan_setup); |
276 | vlan_setup, real_dev->num_tx_queues); | ||
277 | 276 | ||
278 | if (new_dev == NULL) | 277 | if (new_dev == NULL) |
279 | return -ENOBUFS; | 278 | return -ENOBUFS; |
280 | 279 | ||
281 | netif_copy_real_num_queues(new_dev, real_dev); | ||
282 | dev_net_set(new_dev, net); | 280 | dev_net_set(new_dev, net); |
283 | /* need 4 bytes for extra VLAN header info, | 281 | /* need 4 bytes for extra VLAN header info, |
284 | * hope the underlying device can handle it. | 282 | * hope the underlying device can handle it. |