mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
65de0f1855
commit
9bb9bfc769
2 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue