Commit ebcd5daa authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller

r8169: change interrupt handler argument type

Code can be a little simplified by switching the interrupt handler
argument type to struct rtl8169_private *.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e71c9ce2
...@@ -7432,8 +7432,7 @@ static int rtl_rx(struct net_device *dev, struct rtl8169_private *tp, u32 budget ...@@ -7432,8 +7432,7 @@ static int rtl_rx(struct net_device *dev, struct rtl8169_private *tp, u32 budget
static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance) static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance)
{ {
struct net_device *dev = dev_instance; struct rtl8169_private *tp = dev_instance;
struct rtl8169_private *tp = netdev_priv(dev);
int handled = 0; int handled = 0;
u16 status; u16 status;
...@@ -7605,7 +7604,7 @@ static int rtl8169_close(struct net_device *dev) ...@@ -7605,7 +7604,7 @@ static int rtl8169_close(struct net_device *dev)
cancel_work_sync(&tp->wk.work); cancel_work_sync(&tp->wk.work);
pci_free_irq(pdev, 0, dev); pci_free_irq(pdev, 0, tp);
dma_free_coherent(&pdev->dev, R8169_RX_RING_BYTES, tp->RxDescArray, dma_free_coherent(&pdev->dev, R8169_RX_RING_BYTES, tp->RxDescArray,
tp->RxPhyAddr); tp->RxPhyAddr);
...@@ -7660,7 +7659,7 @@ static int rtl_open(struct net_device *dev) ...@@ -7660,7 +7659,7 @@ static int rtl_open(struct net_device *dev)
rtl_request_firmware(tp); rtl_request_firmware(tp);
retval = pci_request_irq(pdev, 0, rtl8169_interrupt, NULL, dev, retval = pci_request_irq(pdev, 0, rtl8169_interrupt, NULL, tp,
dev->name); dev->name);
if (retval < 0) if (retval < 0)
goto err_release_fw_2; goto err_release_fw_2;
......
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