Commit 762384e9 authored by Chen Ni's avatar Chen Ni Committed by Greg Kroah-Hartman
Browse files

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



[ Upstream commit 0780c836 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 4bf50c7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment