int rt2x00soc_resume(struct platform_device *pdev)
{
	struct ieee80211_hw *hw = platform_get_drvdata(pdev);
	struct rt2x00_dev *rt2x00dev = hw->priv;

	return rt2x00lib_resume(rt2x00dev);
}
Example #2
0
int rt2x00pci_resume(struct pci_dev *pci_dev)
{
    struct ieee80211_hw *hw = pci_get_drvdata(pci_dev);
    struct rt2x00_dev *rt2x00dev = hw->priv;

    if (pci_set_power_state(pci_dev, PCI_D0) ||
            pci_enable_device(pci_dev)) {
        rt2x00_err(rt2x00dev, "Failed to resume device\n");
        return -EIO;
    }

    pci_restore_state(pci_dev);
    return rt2x00lib_resume(rt2x00dev);
}