Skip to content

Commit f60df12

Browse files
bjorn-helgaasKalle Valo
authored andcommitted
wifi: rtlwifi: drop unused const_amdpci_aspm
Remove the unused "const_amdpci_aspm" member of struct rtl_pci and struct rtl_ps_ctl. Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Ping-Ke Shih <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a85198c commit f60df12

File tree

11 files changed

+0
-28
lines changed

11 files changed

+0
-28
lines changed

drivers/net/wireless/realtek/rtlwifi/pci.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ static void _rtl_pci_update_default_setting(struct ieee80211_hw *hw)
7070
ppsc->support_aspm = false;
7171

7272
/*Update PCI ASPM setting */
73-
ppsc->const_amdpci_aspm = rtlpci->const_amdpci_aspm;
7473
switch (rtlpci->const_pci_aspm) {
7574
case 0:
7675
/*No ASPM */

drivers/net/wireless/realtek/rtlwifi/pci.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ struct rtl_pci {
195195
u32 reg_bcn_ctrl_val;
196196

197197
/*ASPM*/ u8 const_pci_aspm;
198-
u8 const_amdpci_aspm;
199198
u8 const_hwsw_rfoff_d3;
200199
u8 const_support_pciaspm;
201200
/*pci-e bridge */

drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ static void rtl88e_init_aspm_vars(struct ieee80211_hw *hw)
2121
struct rtl_priv *rtlpriv = rtl_priv(hw);
2222
struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
2323

24-
/*close ASPM for AMD defaultly */
25-
rtlpci->const_amdpci_aspm = 0;
26-
2724
/* ASPM PS mode.
2825
* 0 - Disable ASPM,
2926
* 1 - Enable ASPM without Clock Req,

drivers/net/wireless/realtek/rtlwifi/rtl8192ce/sw.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ static void rtl92c_init_aspm_vars(struct ieee80211_hw *hw)
2424
struct rtl_priv *rtlpriv = rtl_priv(hw);
2525
struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
2626

27-
/*close ASPM for AMD defaultly */
28-
rtlpci->const_amdpci_aspm = 0;
29-
3027
/*
3128
* ASPM PS mode.
3229
* 0 - Disable ASPM,

drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ static void rtl92d_init_aspm_vars(struct ieee80211_hw *hw)
2121
struct rtl_priv *rtlpriv = rtl_priv(hw);
2222
struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
2323

24-
/*close ASPM for AMD defaultly */
25-
rtlpci->const_amdpci_aspm = 0;
26-
2724
/*
2825
* ASPM PS mode.
2926
* 0 - Disable ASPM,

drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ static void rtl92ee_init_aspm_vars(struct ieee80211_hw *hw)
2424
struct rtl_priv *rtlpriv = rtl_priv(hw);
2525
struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
2626

27-
/*close ASPM for AMD defaultly */
28-
rtlpci->const_amdpci_aspm = 0;
29-
3027
/**
3128
* ASPM PS mode.
3229
* 0 - Disable ASPM,

drivers/net/wireless/realtek/rtlwifi/rtl8192se/sw.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ static void rtl92s_init_aspm_vars(struct ieee80211_hw *hw)
2121
struct rtl_priv *rtlpriv = rtl_priv(hw);
2222
struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
2323

24-
/*close ASPM for AMD defaultly */
25-
rtlpci->const_amdpci_aspm = 0;
26-
2724
/* ASPM PS mode.
2825
* 0 - Disable ASPM,
2926
* 1 - Enable ASPM without Clock Req,

drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ static void rtl8723e_init_aspm_vars(struct ieee80211_hw *hw)
2626
struct rtl_priv *rtlpriv = rtl_priv(hw);
2727
struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
2828

29-
/*close ASPM for AMD defaultly */
30-
rtlpci->const_amdpci_aspm = 0;
31-
3229
/**
3330
* ASPM PS mode.
3431
* 0 - Disable ASPM,

drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ static void rtl8723be_init_aspm_vars(struct ieee80211_hw *hw)
2626
struct rtl_priv *rtlpriv = rtl_priv(hw);
2727
struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
2828

29-
/*close ASPM for AMD defaultly */
30-
rtlpci->const_amdpci_aspm = 0;
31-
3229
/* ASPM PS mode.
3330
* 0 - Disable ASPM,
3431
* 1 - Enable ASPM without Clock Req,

drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ static void rtl8821ae_init_aspm_vars(struct ieee80211_hw *hw)
2323
struct rtl_priv *rtlpriv = rtl_priv(hw);
2424
struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
2525

26-
/*close ASPM for AMD defaultly */
27-
rtlpci->const_amdpci_aspm = 0;
28-
2926
/**
3027
* ASPM PS mode.
3128
* 0 - Disable ASPM,

0 commit comments

Comments
 (0)