[PATCH 30/30] staging: rtl8192e: Remove dead code associated with CONFIG_RTL_RFKILL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx>
---
 drivers/staging/rtl8192e/rtl_core.c |   16 ----------------
 drivers/staging/rtl8192e/rtl_core.h |    7 -------
 2 files changed, 0 insertions(+), 23 deletions(-)

diff --git a/drivers/staging/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl_core.c
index 7a7e91e..f8040ac 100644
--- a/drivers/staging/rtl8192e/rtl_core.c
+++ b/drivers/staging/rtl8192e/rtl_core.c
@@ -1147,11 +1147,7 @@ static void rtl8192_init_priv_handler(struct net_device* dev)
 
 	priv->rtllib->ScanOperationBackupHandler = PHY_ScanOperationBackup8192;
 
-#ifdef CONFIG_RTL_RFKILL
-	priv->rtllib->rtllib_rfkill_poll = rtl8192_rfkill_poll;
-#else
 	priv->rtllib->rtllib_rfkill_poll = NULL;
-#endif
 }
 
 static void rtl8192_init_priv_constant(struct net_device* dev)
@@ -3056,15 +3052,6 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev,
 	if (priv->polling_timer_on == 0){
 		check_rfctrl_gpio_timer((unsigned long)dev);
 	}
-#ifdef CONFIG_RTL_RFKILL
-	if (priv->ops->init_before_adapter_start) {
-		priv->ops->init_before_adapter_start(dev);
-		priv->initialized_at_probe = true;
-	}
-	if (!rtl8192_rfkill_init(dev)) {
-		goto fail1;
-	}
-#endif
 
 	RT_TRACE(COMP_INIT, "Driver probe completed\n");
 	return 0;
@@ -3099,9 +3086,6 @@ static void __devexit rtl8192_pci_disconnect(struct pci_dev *pdev)
 	struct net_device *dev = pci_get_drvdata(pdev);
 	struct r8192_priv *priv ;
 	if (dev){
-#ifdef CONFIG_RTL_RFKILL
-		rtl8192_rfkill_exit(dev);
-#endif
 		unregister_netdev(dev);
 
 		priv = rtllib_priv(dev);
diff --git a/drivers/staging/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl_core.h
index 89242a6..e014999 100644
--- a/drivers/staging/rtl8192e/rtl_core.h
+++ b/drivers/staging/rtl8192e/rtl_core.h
@@ -55,10 +55,6 @@
 #include "r8190P_def.h"
 #include "r8192E_dev.h"
 
-#ifdef CONFIG_RTL_RFKILL
-#include "rtl_rfkill.h"
-#endif
-
 #include "rtl_debug.h"
 #include "rtl_eeprom.h"
 #include "rtl_ps.h"
@@ -677,9 +673,6 @@ typedef struct r8192_priv
 	u8		RegCWinMin;
 	u8		keepAliveLevel;
 
-#ifdef CONFIG_RTL_RFKILL
-	bool		rfkill_off;
-#endif
 	bool		sw_radio_on;
 	bool		bHwRadioOff;
 	bool		pwrdown;
-- 
1.7.3.4

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux