diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2025-10-11 09:24:40 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2025-10-21 07:49:39 +0000 |
| commit | 0ae4998423e0d513fb88e404dfb1c2a285d11309 (patch) | |
| tree | c5028ee75a1cd1a7354fb6cfba3115c5b7676511 | |
| parent | cc792250acadd29e80a69501ad326d1340c0c1c6 (diff) | |
LinuxKPI: platform_device return type change
The return type now is void; I believe no one ever used this
so we can just chnage it. The only active platform_driver_register()
calls seems to be in ath1[01]k and mt76 and there in unsupported code.
MFC after: 3 days
Reviewed by: dumbbell, emaste
Differential Revision: https://reviews.freebsd.org/D53205
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/platform_device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/platform_device.h b/sys/compat/linuxkpi/common/include/linux/platform_device.h index 6853e709cb70..dba79f5936cc 100644 --- a/sys/compat/linuxkpi/common/include/linux/platform_device.h +++ b/sys/compat/linuxkpi/common/include/linux/platform_device.h @@ -39,7 +39,7 @@ struct platform_device { }; struct platform_driver { - int (*remove)(struct platform_device *); + void (*remove)(struct platform_device *); struct device_driver driver; }; |
