rtw89: add missing bsddriver.name assignments for two chipsets

On FreeBSDs we locally set bsddriver.name in struct pci_driver to have
the same name for all chipsets.  This helps with, e.g., device
enumeration.  For two chipsets the manual entry was missing.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit ce15215befa1022d9a20ec15bdb0739dbe55f10f)
This commit is contained in:
Bjoern A. Zeeb 2024-10-10 23:07:55 +00:00
parent 65de0f1855
commit 9bb9bfc769
2 changed files with 6 additions and 0 deletions

View file

@ -78,6 +78,9 @@ static struct pci_driver rtw89_8851be_driver = {
.probe = rtw89_pci_probe,
.remove = rtw89_pci_remove,
.driver.pm = &rtw89_pm_ops,
#if defined(__FreeBSD__)
.bsddriver.name = KBUILD_MODNAME,
#endif
};
module_pci_driver(rtw89_8851be_driver);

View file

@ -82,6 +82,9 @@ static struct pci_driver rtw89_8852be_driver = {
.probe = rtw89_pci_probe,
.remove = rtw89_pci_remove,
.driver.pm = &rtw89_pm_ops,
#if defined(__FreeBSD__)
.bsddriver.name = KBUILD_MODNAME,
#endif
};
module_pci_driver(rtw89_8852be_driver);