Commit 93f7fab4 authored by Francois Romieu's avatar Francois Romieu

atl1c: stop using net_device.{base_addr, irq}.

Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
Cc: Jay Cliburn <jcliburn@gmail.com>
Cc: Chris Snook <chris.snook@gmail.com>
parent 03a2384e
...@@ -2307,8 +2307,7 @@ static int atl1c_request_irq(struct atl1c_adapter *adapter) ...@@ -2307,8 +2307,7 @@ static int atl1c_request_irq(struct atl1c_adapter *adapter)
"Unable to allocate MSI interrupt Error: %d\n", "Unable to allocate MSI interrupt Error: %d\n",
err); err);
adapter->have_msi = false; adapter->have_msi = false;
} else }
netdev->irq = pdev->irq;
if (!adapter->have_msi) if (!adapter->have_msi)
flags |= IRQF_SHARED; flags |= IRQF_SHARED;
...@@ -2616,7 +2615,6 @@ static int atl1c_init_netdev(struct net_device *netdev, struct pci_dev *pdev) ...@@ -2616,7 +2615,6 @@ static int atl1c_init_netdev(struct net_device *netdev, struct pci_dev *pdev)
SET_NETDEV_DEV(netdev, &pdev->dev); SET_NETDEV_DEV(netdev, &pdev->dev);
pci_set_drvdata(pdev, netdev); pci_set_drvdata(pdev, netdev);
netdev->irq = pdev->irq;
netdev->netdev_ops = &atl1c_netdev_ops; netdev->netdev_ops = &atl1c_netdev_ops;
netdev->watchdog_timeo = AT_TX_WATCHDOG; netdev->watchdog_timeo = AT_TX_WATCHDOG;
atl1c_set_ethtool_ops(netdev); atl1c_set_ethtool_ops(netdev);
...@@ -2706,7 +2704,6 @@ static int __devinit atl1c_probe(struct pci_dev *pdev, ...@@ -2706,7 +2704,6 @@ static int __devinit atl1c_probe(struct pci_dev *pdev,
dev_err(&pdev->dev, "cannot map device registers\n"); dev_err(&pdev->dev, "cannot map device registers\n");
goto err_ioremap; goto err_ioremap;
} }
netdev->base_addr = (unsigned long)adapter->hw.hw_addr;
/* init mii data */ /* init mii data */
adapter->mii.dev = netdev; adapter->mii.dev = netdev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment