aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/rtl_core.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2011-07-14 23:58:27 -0500
committerLarry Finger <Larry.Finger@lwfinger.net>2011-08-23 21:39:21 -0500
commitf60949901cc5f1c02268938f63306ac5a36c9cba (patch)
tree2544b28ddafbe40e80131c3972fc7260b6e6d738 /drivers/staging/rtl8192e/rtl_core.c
parentstaging: rtl8192e: Remove conditional code associated with EEPROM_OLD_FORMAT_SUPPORT (diff)
downloadlinux-dev-f60949901cc5f1c02268938f63306ac5a36c9cba.tar.xz
linux-dev-f60949901cc5f1c02268938f63306ac5a36c9cba.zip
staging: rtl8192e: Remove dead code associated with CONFIG_RTL_RFKILL
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Diffstat (limited to 'drivers/staging/rtl8192e/rtl_core.c')
-rw-r--r--drivers/staging/rtl8192e/rtl_core.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/staging/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl_core.c
index 7a7e91efebc6..f8040acb91d1 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);