mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 16:53:20 -04:00
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: be7ecbd240 ("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>
This commit is contained in:
committed by
Christophe Leroy (CS GROUP)
parent
ce816ddb04
commit
fbdba2a67f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user