[jme] Fix suspend back-port compatible issue
authorAries Lee <arieslee@jmicron.com>
Tue, 18 Jan 2011 17:24:06 +0000 (01:24 +0800)
committerGuo-Fu Tseng <cooldavid@cooldavid.org>
Sat, 12 Feb 2011 17:57:36 +0000 (01:57 +0800)
jme.c

diff --git a/jme.c b/jme.c
index d366e6a..3ebfd49 100644 (file)
--- a/jme.c
+++ b/jme.c
@@ -3322,7 +3322,11 @@ jme_suspend(struct pci_dev *pdev, pm_message_t state)
 
        pci_save_state(pdev);
        jme_powersave_phy(jme);
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,27)
        pci_enable_wake(pdev, PCI_D3hot, true);
+#else
+       pci_pme_active(pdev, true);
+#endif
        pci_set_power_state(pdev, PCI_D3hot);
 
        return 0;