Commit 0780c836 authored by Chen Ni's avatar Chen Ni Committed by Bjorn Andersson
Browse files

soc: qcom: pmic_glink: Handle the return value of pmic_glink_init



As platform_driver_register() and register_rpmsg_driver() can return
error numbers, it should be better to check the return value and deal
with the exception.

Signed-off-by: default avatarChen Ni <nichen@iscas.ac.cn>
Fixes: 58ef4ece ("soc: qcom: pmic_glink: Introduce base PMIC GLINK  driver")
Reviewed-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://lore.kernel.org/r/20240510083156.1996783-1-nichen@iscas.ac.cn


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent f63f815f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment