summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinkai Gong <gonglinkai@kylinos.cn>2026-07-31 17:46:08 +0800
committerChristophe Leroy (CS GROUP) <chleroy@kernel.org>2026-08-07 06:54:23 +0200
commitfbdba2a67fa7c0e7570bcbf9f28b782d6100270d (patch)
treef2e5214ab0d8c40beb6431ed31b9c4dadf6c210c
parentce816ddb047b5551210ef1aa27415cf4ff29d8e4 (diff)
soc: fsl: qe: check platform_driver_register() in qe_ic_of_init()
qe_ic_of_init() ignored the return value of platform_driver_register() and always returned success. Propagate the error to the initcall. Fixes: be7ecbd240b2 ("soc: fsl: qe: convert QE interrupt controller to platform_device") Signed-off-by: Linkai Gong <gonglinkai@kylinos.cn> Reviewed-by: Maxim Kochetkov <fido_max@inbox.ru> Link: https://lore.kernel.org/r/20260731094608.1883391-1-gonglinkai@kylinos.cn Signed-off-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
-rw-r--r--drivers/soc/fsl/qe/qe_ic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c
index 943911053af6..bccc7d612009 100644
--- a/drivers/soc/fsl/qe/qe_ic.c
+++ b/drivers/soc/fsl/qe/qe_ic.c
@@ -473,7 +473,6 @@ static struct platform_driver qe_ic_driver =
static int __init qe_ic_of_init(void)
{
- platform_driver_register(&qe_ic_driver);
- return 0;
+ return platform_driver_register(&qe_ic_driver);
}
subsys_initcall(qe_ic_of_init);