Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 2025 23:37:09 GMT
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: b691171a06f8 - releng/15.0 - LinuxKPI: platform_device return type change
Message-ID:  <202510232337.59NNb9S6026267@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch releng/15.0 has been updated by cperciva:

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

commit b691171a06f8f311e19e516d06fb94591e018161
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-10-11 09:24:40 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-10-23 23:32:03 +0000

    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.
    
    Approved by:    re (cperciva)
    Reviewed by:    dumbbell, emaste
    Differential Revision: https://reviews.freebsd.org/D53205
    
    (cherry picked from commit 0ae4998423e0d513fb88e404dfb1c2a285d11309)
    (cherry picked from commit 5434a1635ed3fab8214f3fea8ada9772e4372372)
---
 sys/compat/linuxkpi/common/include/linux/platform_device.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 };
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510232337.59NNb9S6026267>