diff options
Diffstat (limited to 'drivers/net/vmxnet3/vmxnet3_drv.c')
-rw-r--r-- | drivers/net/vmxnet3/vmxnet3_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index 009277e1084f..1a8cc5bf06bb 100644 --- a/drivers/net/vmxnet3/vmxnet3_drv.c +++ b/drivers/net/vmxnet3/vmxnet3_drv.c | |||
@@ -2993,6 +2993,7 @@ vmxnet3_probe_device(struct pci_dev *pdev, | |||
2993 | goto err_ver; | 2993 | goto err_ver; |
2994 | } | 2994 | } |
2995 | 2995 | ||
2996 | SET_NETDEV_DEV(netdev, &pdev->dev); | ||
2996 | vmxnet3_declare_features(adapter, dma64); | 2997 | vmxnet3_declare_features(adapter, dma64); |
2997 | 2998 | ||
2998 | adapter->dev_number = atomic_read(&devices_found); | 2999 | adapter->dev_number = atomic_read(&devices_found); |
@@ -3038,7 +3039,6 @@ vmxnet3_probe_device(struct pci_dev *pdev, | |||
3038 | netif_set_real_num_tx_queues(adapter->netdev, adapter->num_tx_queues); | 3039 | netif_set_real_num_tx_queues(adapter->netdev, adapter->num_tx_queues); |
3039 | netif_set_real_num_rx_queues(adapter->netdev, adapter->num_rx_queues); | 3040 | netif_set_real_num_rx_queues(adapter->netdev, adapter->num_rx_queues); |
3040 | 3041 | ||
3041 | SET_NETDEV_DEV(netdev, &pdev->dev); | ||
3042 | err = register_netdev(netdev); | 3042 | err = register_netdev(netdev); |
3043 | 3043 | ||
3044 | if (err) { | 3044 | if (err) { |