Skip to content

Commit

Permalink
rtl8192e: drop alternate code paths for CONFIG_PM_RTL
Browse files Browse the repository at this point in the history
It has always been enabled unconditionally by ccflags-y.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Stefan Lippers-Hollmann authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent 71769d7 commit 61fcc01
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/rtl8192e/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ccflags-y += -DCONFIG_PM_RTL

r8192e_pci-objs := \
rtl_core.o \
rtl_eeprom.o \
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/rtl8192e/rtl_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@
#include "rtl_wx.h"
#include "rtl_dm.h"

#ifdef CONFIG_PM_RTL
#include "rtl_pm.h"
#endif

int hwwep = 1;
static int channels = 0x3fff;
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/rtl8192e/rtl_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* wlanfae <wlanfae@realtek.com>
******************************************************************************/

#ifdef CONFIG_PM_RTL
#include "rtl_core.h"
#include "r8192E_hw.h"
#include "r8190P_rtl8256.h"
Expand Down Expand Up @@ -133,4 +132,3 @@ int rtl8192E_enable_wake(struct pci_dev *dev, pm_message_t state, int enable)
return -EAGAIN;
}

#endif
4 changes: 0 additions & 4 deletions drivers/staging/rtl8192e/rtl_pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
* wlanfae <wlanfae@realtek.com>
******************************************************************************/

#ifdef CONFIG_PM_RTL

#ifndef R8192E_PM_H
#define R8192E_PM_H

Expand All @@ -31,5 +29,3 @@ int rtl8192E_resume(struct pci_dev *dev);
int rtl8192E_enable_wake(struct pci_dev *dev, pm_message_t state, int enable);

#endif

#endif

0 comments on commit 61fcc01

Please sign in to comment.