clk: scpi: Fix checking return value of platform_device_register_simple()
Subsystems (2)
platform_device_register_simple() returns ERR_PTR on error.
Signed-off-by Axel Lin <[email protected]>
--- drivers/clk/clk-scpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/clk-scpi.c +1 -1
@@ -299,7 +299,7 @@ static int scpi_clocks_probe(struct platform_device *pdev)/* Add the virtual cpufreq device */ cpufreq_dev =platform_device_register_simple ("scpi-cpufreq" ,-1 ,NULL ,0 ); -if (!cpufreq_dev) +if (IS_ERR (cpufreq_dev))pr_warn ("unable to register cpufreq device" );return 0 ;
Signature · 1 line
2.1.4
Sudeep Holla
Acked-byHi Stephen, Mike,
Can you pick up this fix for your next pull request ?
Quoted 3 lines · Axel Lin
platform_device_register_simple()returnsERR_PTRon error.Signed-off-by Axel Lin <[email protected]>
Acked-by Sudeep Holla <[email protected]>
Signature · 2 lines
Regards, Sudeep
Hi Stephen, Mike,
Quoted 4 lines · Sudeep Holla
Hi Stephen, Mike,
Can you pick up this fix for your next pull request ?
This seem to have got lost in the noise during holidays, can you please pick this up ?
Quoted 7 lines · Axel Lin
Quoted 3 lines
platform_device_register_simple()returnsERR_PTRon error.Signed-off-by Axel Lin <[email protected]>Acked-by Sudeep Holla <[email protected]>
Signature · 2 lines
Regards, Sudeep
Stephen Boyd
AppliedQuoted 4 lines · Axel Lin
platform_device_register_simple()returnsERR_PTRon error.Signed-off-by Axel Lin <[email protected]>---
Applied to clk-fixes
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project