mirror of
https://xff.cz/git/u-boot/
synced 2025-09-08 04:02:07 +02:00
The pmic_reg_read() function can return errors. Add a check for that.
Fixes: 4e8aa0065d
("button: qcom-pmic: introduce Qualcomm PMIC button driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>