The branch main has been updated by bz:

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

commit f58e032410c93d67c83d6bce8a3e6711f377a4be
Author:     Bjoern A. Zeeb <b...@freebsd.org>
AuthorDate: 2025-06-22 22:44:40 +0000
Commit:     Bjoern A. Zeeb <b...@freebsd.org>
CommitDate: 2025-07-04 03:22:22 +0000

    LinuxKPI: MODULE_DEVICE_TABLE() remove hard coded pci
    
    While we currently only use MODULE_DEVICE_TABLE() for pci (or so I
    thought [*]), this may soon change.  Remove a hard coded "pci" for
    the bus and use the bus name passed in as _bus.
    
    [*] see follow-up change
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
    Reviewed by:    imp, dumbbell
    Differential Revision: https://reviews.freebsd.org/D51048
---
 sys/compat/linuxkpi/common/include/linux/pci.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h 
b/sys/compat/linuxkpi/common/include/linux/pci.h
index 174015ba7a58..f8a0b2d84d41 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -85,7 +85,7 @@ static driver_t _ ## _bus ## _ ## _table ## _driver = {       
                \
        0                                                               \
 };                                                                     \
                                                                        \
-DRIVER_MODULE(lkpi_ ## _table, pci, _ ## _bus ## _ ## _table ## _driver,\
+DRIVER_MODULE(lkpi_ ## _table, _bus, _ ## _bus ## _ ## _table ## _driver,\
        0, 0);                                                          \
                                                                        \
 MODULE_PNP_INFO("U32:vendor;U32:device;V32:subvendor;V32:subdevice",   \

Reply via email to