aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2024-10-10 23:07:55 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2024-10-11 13:40:15 +0000
commitce15215befa1022d9a20ec15bdb0739dbe55f10f (patch)
treed9c4b235808ff7660d9311af1e382c0ecf186aff
parent7ff12dd25ada486c4d33e854977514b2db690e7f (diff)
downloadsrc-ce15215befa1.tar.gz
src-ce15215befa1.zip
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
-rw-r--r--sys/contrib/dev/rtw89/rtw8851be.c3
-rw-r--r--sys/contrib/dev/rtw89/rtw8852be.c3
2 files changed, 6 insertions, 0 deletions
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);