staging: r8188eu: remove rtw_debug module parameter
authorPhillip Potter <phil@philpotter.co.uk>
Wed, 16 Feb 2022 01:07:05 +0000 (01:07 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Feb 2022 15:00:36 +0000 (16:00 +0100)
Remove rtw_debug module parameter, and also the internal GlobalDebugLevel
flag and all places where it is referenced. As hal/odm_debug.c is now
essentially empty, also remove this file and edit the Makefile to no
longer reference it. The DBG_88E macro was the last user of these and
has now been removed, making the parameter and flag redundant.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20220216010709.791-12-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/Makefile
drivers/staging/r8188eu/hal/odm_debug.c [deleted file]
drivers/staging/r8188eu/include/rtw_debug.h
drivers/staging/r8188eu/os_dep/os_intfs.c

index 84627fc..1d7982b 100644 (file)
@@ -10,7 +10,6 @@ r8188eu-y = \
                hal/hal_intf.o \
                hal/hal_com.o \
                hal/odm.o \
-               hal/odm_debug.o \
                hal/odm_HWConfig.o \
                hal/odm_RegConfig8188E.o \
                hal/odm_RTL8188E.o \
diff --git a/drivers/staging/r8188eu/hal/odm_debug.c b/drivers/staging/r8188eu/hal/odm_debug.c
deleted file mode 100644 (file)
index 7a13422..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/* Copyright(c) 2007 - 2011 Realtek Corporation. */
-
-#include "../include/rtw_debug.h"
-
-u32 GlobalDebugLevel;
index 959fb6b..01a7d98 100644 (file)
@@ -52,6 +52,4 @@
 
 #define DRIVER_PREFIX  "R8188EU: "
 
-extern u32 GlobalDebugLevel;
-
 #endif /* __RTW_DEBUG_H__ */
index 4230819..9884dbc 100644 (file)
@@ -45,7 +45,6 @@ static int rtw_smart_ps = 2;
 module_param(rtw_ips_mode, int, 0644);
 MODULE_PARM_DESC(rtw_ips_mode, "The default IPS mode");
 
-static int rtw_debug = 1;
 static int rtw_radio_enable = 1;
 static int rtw_long_retry_lmt = 7;
 static int rtw_short_retry_lmt = 7;
@@ -148,14 +147,11 @@ MODULE_PARM_DESC(rtw_80211d, "Enable 802.11d mechanism");
 static uint rtw_notch_filter = RTW_NOTCH_FILTER;
 module_param(rtw_notch_filter, uint, 0644);
 MODULE_PARM_DESC(rtw_notch_filter, "0:Disable, 1:Enable, 2:Enable only for P2P");
-module_param_named(debug, rtw_debug, int, 0444);
-MODULE_PARM_DESC(debug, "Set debug level (1-9) (default 1)");
 
 static uint loadparam(struct adapter *padapter)
 {
        struct registry_priv  *registry_par = &padapter->registrypriv;
 
-       GlobalDebugLevel = rtw_debug;
        registry_par->chip_version = (u8)rtw_chip_version;
        registry_par->rfintfs = (u8)rtw_rfintfs;
        registry_par->lbkmode = (u8)rtw_lbkmode;