mirror of https://gitee.com/openkylin/linux.git
e1000e: Save irq into netdev structure
Set net->devirq to pdev->irq. This should be consistent with other drivers. Signed-off-by: Tom Herbert <therbert@google.com> Acked-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c72ea83d39
commit
f85e4dfac6
|
@ -5440,6 +5440,8 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
|
|||
|
||||
SET_NETDEV_DEV(netdev, &pdev->dev);
|
||||
|
||||
netdev->irq = pdev->irq;
|
||||
|
||||
pci_set_drvdata(pdev, netdev);
|
||||
adapter = netdev_priv(netdev);
|
||||
hw = &adapter->hw;
|
||||
|
|
Loading…
Reference in New Issue