git: ce15215befa1 - main - rtw89: add missing bsddriver.name assignments for two chipsets

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Fri, 11 Oct 2024 13:48:23 UTC
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=ce15215befa1022d9a20ec15bdb0739dbe55f10f

commit ce15215befa1022d9a20ec15bdb0739dbe55f10f
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-10-10 23:07:55 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2024-10-11 13:40:15 +0000

    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
    MFC after:      3 days
---
 sys/contrib/dev/rtw89/rtw8851be.c | 3 +++
 sys/contrib/dev/rtw89/rtw8852be.c | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/sys/contrib/dev/rtw89/rtw8851be.c b/sys/contrib/dev/rtw89/rtw8851be.c
index 0f7711c50bd1..76216b790450 100644
--- a/sys/contrib/dev/rtw89/rtw8851be.c
+++ b/sys/contrib/dev/rtw89/rtw8851be.c
@@ -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);
 
diff --git a/sys/contrib/dev/rtw89/rtw8852be.c b/sys/contrib/dev/rtw89/rtw8852be.c
index ecf39d2d9f81..be96ff56d699 100644
--- a/sys/contrib/dev/rtw89/rtw8852be.c
+++ b/sys/contrib/dev/rtw89/rtw8852be.c
@@ -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);