The branch main has been updated by bz:

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

commit 16c6a3444a1913e01ce0fce4257c52b5969da10a
Author:     Bjoern A. Zeeb <b...@freebsd.org>
AuthorDate: 2024-07-29 16:10:29 +0000
Commit:     Bjoern A. Zeeb <b...@freebsd.org>
CommitDate: 2025-07-04 03:22:22 +0000

    LinuxKPI: device.h add (*shutdown)
    
    There are too many ways to call (*shutdown)() and others in Linux
    it seems;  rather than using the one from dev_pm_ops or directly
    on the bus system device, some wireless drivers are setting it on
    struct device_driver so add it.
    
    Bump __FreeBSD_version as this changes the size of various other
    structs which have struct device_driver embedded.
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    dumbbell
    Differential Revision: https://reviews.freebsd.org/D50679
---
 sys/compat/linuxkpi/common/include/linux/device.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/device.h 
b/sys/compat/linuxkpi/common/include/linux/device.h
index a5f6874a07f6..2556b0c45e49 100644
--- a/sys/compat/linuxkpi/common/include/linux/device.h
+++ b/sys/compat/linuxkpi/common/include/linux/device.h
@@ -90,6 +90,8 @@ struct dev_pm_ops {
 struct device_driver {
        const char      *name;
        const struct dev_pm_ops *pm;
+
+       void (*shutdown) (struct device *);
 };
 
 struct device_type {

Reply via email to