[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240409030840.666703-1-nichen@iscas.ac.cn>
Date: Tue, 9 Apr 2024 03:08:40 +0000
From: Chen Ni <nichen@...as.ac.cn>
To: qiang.zhao@....com,
leoyang.li@....com,
saravanak@...gle.com,
fido_max@...ox.ru
Cc: linuxppc-dev@...ts.ozlabs.org,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Chen Ni <nichen@...as.ac.cn>
Subject: [PATCH] soc: fsl: qe: Add check for platform_driver_register
Return platform_driver_register() in order to transfer the error if
it fails.
Fixes: be7ecbd240b2 ("soc: fsl: qe: convert QE interrupt controller to platform_device")
Signed-off-by: Chen Ni <nichen@...as.ac.cn>
---
drivers/soc/fsl/qe/qe_ic.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c
index bbae3d39c7be..f17de6000ff2 100644
--- a/drivers/soc/fsl/qe/qe_ic.c
+++ b/drivers/soc/fsl/qe/qe_ic.c
@@ -481,7 +481,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);
--
2.25.1
Powered by blists - more mailing lists