Skip to content

Commit

Permalink
[PATCH] ipw2200: Add pci .shutdown handler
Browse files Browse the repository at this point in the history
If we don't disable the card in the pci .shutdown method, there might be
pending interrupts still in the interrupt line after a reboot on some
platform. This patch fixes the problem by disable the hardware in the pci
.shutdown method.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Zhu Yi authored and John W. Linville committed Aug 29, 2006
1 parent b9bec76 commit c8c22c9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -11735,6 +11735,16 @@ static int ipw_pci_resume(struct pci_dev *pdev)
}
#endif

static void ipw_pci_shutdown(struct pci_dev *pdev)
{
struct ipw_priv *priv = pci_get_drvdata(pdev);

/* Take down the device; powers it off, etc. */
ipw_down(priv);

pci_disable_device(pdev);
}

/* driver initialization stuff */
static struct pci_driver ipw_driver = {
.name = DRV_NAME,
Expand All @@ -11745,6 +11755,7 @@ static struct pci_driver ipw_driver = {
.suspend = ipw_pci_suspend,
.resume = ipw_pci_resume,
#endif
.shutdown = ipw_pci_shutdown,
};

static int __init ipw_init(void)
Expand Down

0 comments on commit c8c22c9

Please sign in to comment.