diff options
author | Francois Romieu <romieu@fr.zoreil.com> | 2012-03-23 13:51:20 -0400 |
---|---|---|
committer | Francois Romieu <romieu@fr.zoreil.com> | 2012-04-07 05:58:09 -0400 |
commit | a74254588754bf7bc5c60f2bcc9ee5f66b749ea2 (patch) | |
tree | 0328840caed96ea62dae90beabee4015242d723d /drivers/net/ethernet/myricom/myri10ge | |
parent | 57d6d456cfb89264f87d24f52640ede23fdf12bd (diff) |
myri10ge: stop using net_device.{base_addr, irq}.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Jon Mason <mason@myri.com>
Acked-by: Andrew Gallatin <gallatin@myri.com>
Diffstat (limited to 'drivers/net/ethernet/myricom/myri10ge')
-rw-r--r-- | drivers/net/ethernet/myricom/myri10ge/myri10ge.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c index 27273ae1a6e6..90153fc983cb 100644 --- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c +++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c | |||
@@ -4033,7 +4033,6 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
4033 | 4033 | ||
4034 | netdev->netdev_ops = &myri10ge_netdev_ops; | 4034 | netdev->netdev_ops = &myri10ge_netdev_ops; |
4035 | netdev->mtu = myri10ge_initial_mtu; | 4035 | netdev->mtu = myri10ge_initial_mtu; |
4036 | netdev->base_addr = mgp->iomem_base; | ||
4037 | netdev->hw_features = mgp->features | NETIF_F_LRO | NETIF_F_RXCSUM; | 4036 | netdev->hw_features = mgp->features | NETIF_F_LRO | NETIF_F_RXCSUM; |
4038 | netdev->features = netdev->hw_features; | 4037 | netdev->features = netdev->hw_features; |
4039 | 4038 | ||
@@ -4047,12 +4046,10 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
4047 | netdev->vlan_features &= ~NETIF_F_TSO; | 4046 | netdev->vlan_features &= ~NETIF_F_TSO; |
4048 | 4047 | ||
4049 | /* make sure we can get an irq, and that MSI can be | 4048 | /* make sure we can get an irq, and that MSI can be |
4050 | * setup (if available). Also ensure netdev->irq | 4049 | * setup (if available). */ |
4051 | * is set to correct value if MSI is enabled */ | ||
4052 | status = myri10ge_request_irq(mgp); | 4050 | status = myri10ge_request_irq(mgp); |
4053 | if (status != 0) | 4051 | if (status != 0) |
4054 | goto abort_with_firmware; | 4052 | goto abort_with_firmware; |
4055 | netdev->irq = pdev->irq; | ||
4056 | myri10ge_free_irq(mgp); | 4053 | myri10ge_free_irq(mgp); |
4057 | 4054 | ||
4058 | /* Save configuration space to be restored if the | 4055 | /* Save configuration space to be restored if the |
@@ -4077,7 +4074,7 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
4077 | else | 4074 | else |
4078 | dev_info(dev, "%s IRQ %d, tx bndry %d, fw %s, WC %s\n", | 4075 | dev_info(dev, "%s IRQ %d, tx bndry %d, fw %s, WC %s\n", |
4079 | mgp->msi_enabled ? "MSI" : "xPIC", | 4076 | mgp->msi_enabled ? "MSI" : "xPIC", |
4080 | netdev->irq, mgp->tx_boundary, mgp->fw_name, | 4077 | pdev->irq, mgp->tx_boundary, mgp->fw_name, |
4081 | (mgp->wc_enabled ? "Enabled" : "Disabled")); | 4078 | (mgp->wc_enabled ? "Enabled" : "Disabled")); |
4082 | 4079 | ||
4083 | board_number++; | 4080 | board_number++; |