Staging: rtl8187se: remove CONFIG_RTL8180_PM ifdefs
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 28 Jun 2009 14:18:51 +0000 (16:18 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:28 +0000 (12:01 -0700)
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8187se/Makefile
drivers/staging/rtl8187se/r8180_core.c
drivers/staging/rtl8187se/r8180_pm.c
drivers/staging/rtl8187se/r8180_pm.h
drivers/staging/rtl8187se/r8185b_init.c

index 5784598987331a684bdc5f3486367499612af0ef..6663b1d4c43da834b88b89c7d3e1aaa962801133 100644 (file)
@@ -15,7 +15,6 @@ EXTRA_CFLAGS += -DTX_TRACK
 EXTRA_CFLAGS += -DHIGH_POWER
 EXTRA_CFLAGS += -DSW_DIG
 EXTRA_CFLAGS += -DRATE_ADAPT
-EXTRA_CFLAGS += -DCONFIG_RTL8180_PM
 
 #enable it for legacy power save, disable it for leisure  power save
 EXTRA_CFLAGS += -DENABLE_LPS
index 225561c84f1c1a8cd039861cc16503b41cf031b3..6afc4ef245ae9cd25fa9a3f39ebfc2f660e884e5 100644 (file)
@@ -74,9 +74,7 @@ double __extendsfdf2(float a) {return a;}
 #include "r8180_wx.h"
 #include "r8180_dm.h"
 
-#ifdef CONFIG_RTL8180_PM
 #include "r8180_pm.h"
-#endif
 
 #include "ieee80211/dot11d.h"
 
@@ -199,13 +197,8 @@ static struct pci_driver rtl8180_pci_driver = {
        .id_table       = rtl8180_pci_id_tbl,             /* PCI_ID table  */
        .probe          = rtl8180_pci_probe,              /* probe fn      */
        .remove         = __devexit_p(rtl8180_pci_remove),/* remove fn     */
-#ifdef CONFIG_RTL8180_PM
        .suspend        = rtl8180_suspend,                /* PM suspend fn */
        .resume         = rtl8180_resume,                 /* PM resume fn  */
-#else
-       .suspend        = NULL,                           /* PM suspend fn */
-       .resume         = NULL,                           /* PM resume fn  */
-#endif
        .shutdown       = rtl8180_shutdown,
 };
 
index 2b3d642db77f6442c41872836ddb5d4a7a022ec4..ddc70c86cdfbdcbe4f9c2c8645d7f3a6501ddb6d 100644 (file)
@@ -9,7 +9,6 @@
    Released under the terms of GPL (General Public Licence)
 */
 
-#ifdef CONFIG_RTL8180_PM
 
 
 #include "r8180_hw.h"
@@ -89,4 +88,3 @@ int rtl8180_enable_wake (struct pci_dev *dev, u32 state, int enable)
 
 
 
-#endif //CONFIG_RTL8180_PM
index 7958b3a734db1fdeb3cc4e50d6c3b4291d1c05ae..37cf2ced9f08bc8ad03b43d88ee364980cec6182 100644 (file)
@@ -10,7 +10,6 @@
 
 */
 
-#ifdef CONFIG_RTL8180_PM
 
 #ifndef R8180_PM_H
 #define R8180_PM_H
@@ -25,4 +24,3 @@ int rtl8180_enable_wake (struct pci_dev *dev, u32 state, int enable);
 
 #endif //R8180_PM_H
 
-#endif // CONFIG_RTL8180_PM
index 7ac187e3ac7c4efbcb4c9c330c31aa830ef7895c..5c368f80089eaca2ee584298d8e3cb1e15dd7ece 100644 (file)
@@ -30,9 +30,7 @@ Notes:
 #include "r8180_93cx6.h"   /* Card EEPROM */
 #include "r8180_wx.h"
 
-#ifdef CONFIG_RTL8180_PM
 #include "r8180_pm.h"
-#endif
 
 #include "ieee80211/dot11d.h"