Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtw88: extract: export symbols about pci interface

In the current design, chip entry points are built into
the pci module. That makes the pci module depend on chips.
According to dependence, once the pci module is loaded,
kernel will load chip functionalities, including those that
may not be currently used.

We plan to split chip entry points from the pci module.
Thence we export pci symbols that will be used in chip
entry point modules.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200515052327.31874-3-yhchuang@realtek.com

authored by

Zong-Zhe Yang and committed by
Kalle Valo
72f256c2 449be866

+9 -5
+9 -5
drivers/net/wireless/realtek/rtw88/pci.c
··· 1360 1360 return 0; 1361 1361 } 1362 1362 1363 - static SIMPLE_DEV_PM_OPS(rtw_pm_ops, rtw_pci_suspend, rtw_pci_resume); 1363 + SIMPLE_DEV_PM_OPS(rtw_pm_ops, rtw_pci_suspend, rtw_pci_resume); 1364 + EXPORT_SYMBOL(rtw_pm_ops); 1364 1365 1365 1366 static int rtw_pci_claim(struct rtw_dev *rtwdev, struct pci_dev *pdev) 1366 1367 { ··· 1474 1473 pci_free_irq_vectors(pdev); 1475 1474 } 1476 1475 1477 - static int rtw_pci_probe(struct pci_dev *pdev, 1478 - const struct pci_device_id *id) 1476 + int rtw_pci_probe(struct pci_dev *pdev, 1477 + const struct pci_device_id *id) 1479 1478 { 1480 1479 struct ieee80211_hw *hw; 1481 1480 struct rtw_dev *rtwdev; ··· 1552 1551 1553 1552 return ret; 1554 1553 } 1554 + EXPORT_SYMBOL(rtw_pci_probe); 1555 1555 1556 - static void rtw_pci_remove(struct pci_dev *pdev) 1556 + void rtw_pci_remove(struct pci_dev *pdev) 1557 1557 { 1558 1558 struct ieee80211_hw *hw = pci_get_drvdata(pdev); 1559 1559 struct rtw_dev *rtwdev; ··· 1574 1572 rtw_core_deinit(rtwdev); 1575 1573 ieee80211_free_hw(hw); 1576 1574 } 1575 + EXPORT_SYMBOL(rtw_pci_remove); 1577 1576 1578 - static void rtw_pci_shutdown(struct pci_dev *pdev) 1577 + void rtw_pci_shutdown(struct pci_dev *pdev) 1579 1578 { 1580 1579 struct ieee80211_hw *hw = pci_get_drvdata(pdev); 1581 1580 struct rtw_dev *rtwdev; ··· 1591 1588 if (chip->ops->shutdown) 1592 1589 chip->ops->shutdown(rtwdev); 1593 1590 } 1591 + EXPORT_SYMBOL(rtw_pci_shutdown); 1594 1592 1595 1593 static const struct pci_device_id rtw_pci_id_table[] = { 1596 1594 #ifdef CONFIG_RTW88_8822BE