Use the standard config option CONFIG_PM to enable rtl8192e PM
functions. Tested on Samsung N140 and it works fine. Without enabling
the PM functions, the box always fails to resume.
Signed-off-by: Yong Wang <yong.y.wang@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
        r819xE_firmware.o       \
        r819xE_cmdpkt.o         \
        r8192E_dm.o             \
+       r8192_pm.o              \
        ieee80211/ieee80211_rx.o                \
        ieee80211/ieee80211_softmac.o           \
        ieee80211/ieee80211_tx.o                \
 
 //#include <linux/usb.h>
 // FIXME: check if 2.6.7 is ok
 
-#ifdef CONFIG_PM_RTL
+#ifdef CONFIG_PM
 #include "r8192_pm.h"
 #endif
 
        .id_table       = rtl8192_pci_id_tbl,             /* PCI_ID table  */
        .probe          = rtl8192_pci_probe,              /* probe fn      */
        .remove         = __devexit_p(rtl8192_pci_disconnect),    /* remove fn     */
-#ifdef CONFIG_PM_RTL
+#ifdef CONFIG_PM
        .suspend        = rtl8192E_suspend,               /* PM suspend fn */
        .resume         = rtl8192E_resume,                 /* PM resume fn  */
 #else
 
    Released under the terms of GPL (General Public Licence)
 */
 
-#ifdef CONFIG_PM_RTL
-
 #include "r8192E.h"
 #include "r8192E_hw.h"
 #include "r8192_pm.h"
 {
        struct net_device *dev = pci_get_drvdata(pdev);
        struct r8192_priv *priv = ieee80211_priv(dev);
+#ifdef RTL8190P
        u8      ucRegRead;
+#endif
        u32     ulRegRead;
 
         RT_TRACE(COMP_POWER, "============> r8192E suspend call.\n");
               state.event, enable);
        return(-EAGAIN);
 }
-
-#endif //CONFIG_PM_RTL
 
 
 */
 
-#ifdef CONFIG_PM_RTL
-
 #ifndef R8192E_PM_H
 #define R8192E_PM_H
 
 int rtl8192E_enable_wake (struct pci_dev *dev, pm_message_t state, int enable);
 
 #endif //R8192E_PM_H
-
-#endif // CONFIG_PM_RTL