Skip to contentSkip to conversation

misc: rtsx: remove unused function

PATCH New [email protected] 1 participant 1 message Dec 30, 2020 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: rtsx: remove unused function

From: Ricky Wu <[email protected]>

removed unused function 'rtsx_pci_disable_aspm'

---
 drivers/misc/cardreader/rtsx_pcr.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/misc/cardreader/rtsx_pcr.c +0 -6
index 2aa6648fa41f..d782754fa346 100644
@@ -59,12 +59,6 @@ static const struct pci_device_id rtsx_pci_ids[] = {
 
 MODULE_DEVICE_TABLE(pci, rtsx_pci_ids);
 
-static inline void rtsx_pci_disable_aspm(struct rtsx_pcr *pcr)
-{
-	pcie_capability_clear_and_set_word(pcr->pci, PCI_EXP_LNKCTL,
-					   PCI_EXP_LNKCTL_ASPMC, 0);
-}
-
 static int rtsx_comm_set_ltr_latency(struct rtsx_pcr *pcr, u32 latency)
 {
 	rtsx_pci_write_register(pcr, MSGTXDATA0,
Signature · 1 line
2.17.1