diff options
Diffstat (limited to 'drivers/net/ethernet/marvell/skge.c')
-rw-r--r-- | drivers/net/ethernet/marvell/skge.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/skge.c b/drivers/net/ethernet/marvell/skge.c index 5978461..ecc7f7b 100644 --- a/drivers/net/ethernet/marvell/skge.c +++ b/drivers/net/ethernet/marvell/skge.c @@ -4046,6 +4046,7 @@ err_out_free_regions: pci_release_regions(pdev); err_out_disable_pdev: pci_disable_device(pdev); + pci_set_drvdata(pdev, NULL); err_out: return err; } @@ -4089,6 +4090,7 @@ static void skge_remove(struct pci_dev *pdev) iounmap(hw->regs); kfree(hw); + pci_set_drvdata(pdev, NULL); } #ifdef CONFIG_PM_SLEEP |