Skip to content

Commit

Permalink
rtw89: add missing bsddriver.name assignments for two chipsets
Browse files Browse the repository at this point in the history
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
MFC after:	3 days
  • Loading branch information
Bjoern A. Zeeb authored and Bjoern A. Zeeb committed Oct 11, 2024
1 parent 7ff12dd commit ce15215
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sys/contrib/dev/rtw89/rtw8851be.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
3 changes: 3 additions & 0 deletions sys/contrib/dev/rtw89/rtw8852be.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ce15215

Please sign in to comment.