In kernel 2.6.19, there is a configuration option that enables the _must_check logic. This patch adds a check and removes the warning for a pci_enable_device call in the ipw2200 driver.
Signed-off-by: Larry Finger <[EMAIL PROTECTED]> --- Index: wireless-2.6/drivers/net/wireless/ipw2200.c =================================================================== --- wireless-2.6.orig/drivers/net/wireless/ipw2200.c +++ wireless-2.6/drivers/net/wireless/ipw2200.c @@ -11728,11 +11728,14 @@ static int ipw_pci_resume(struct pci_dev struct ipw_priv *priv = pci_get_drvdata(pdev); struct net_device *dev = priv->net_dev; u32 val; + int err; printk(KERN_INFO "%s: Coming out of suspend...\n", dev->name); pci_set_power_state(pdev, PCI_D0); - pci_enable_device(pdev); + err = pci_enable_device(pdev); + if (err) + return err; pci_restore_state(pdev); /* - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html