09a00b04e5e3ed7ad7f3b81b18899985afc15446
[openwrt/svn-archive/archive.git] / package / acx-mac80211 / patches / 011-no_pm.patch
1 --- acx-mac80211-20070610/pci.c 2007-06-10 20:23:27.000000000 +0200
2 +++ acx-mac80211-20070610.new/pci.c 2007-09-17 01:07:38.000000000 +0200
3 @@ -1693,7 +1693,9 @@
4 /** done with board specific setup **/
5
6 /* need to be able to restore PCI state after a suspend */
7 +#ifdef CONFIG_PM
8 pci_save_state(pdev);
9 +#endif
10
11
12 acx_init_task_scheduler(adev);
13 @@ -1740,7 +1742,9 @@
14 pci_disable_device(pdev);
15 fail_pci_enable_device:
16
17 +#ifdef CONFIG_PM
18 pci_set_power_state(pdev, PCI_D3hot);
19 +#endif
20 fail_register_netdev:
21 ieee80211_free_hw(ieee);
22 done:
23 @@ -1872,7 +1876,9 @@
24 ieee80211_free_hw(adev->ieee);
25
26 /* put device into ACPI D3 mode (shutdown) */
27 +#ifdef CONFIG_PM
28 pci_set_power_state(pdev, PCI_D3hot);
29 +#endif
30 // kfree(ieee);
31 end:
32 FN_EXIT0;