]> git.dujemihanovic.xyz Git - u-boot.git/commit
serial: msm-geni: handle devm_clk_get() errors
authorCaleb Connolly <caleb.connolly@linaro.org>
Tue, 14 Nov 2023 12:51:12 +0000 (12:51 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Tue, 16 Jan 2024 12:26:53 +0000 (12:26 +0000)
commita4ba2a66639ed5db672800a52e6d02b4e83573c2
tree8c661f91aaaa0fa7f84c6e32875d20dbdd2dbc4c
parent836b7f447429960fa6ff8b6d25c11e39b8c00b94
serial: msm-geni: handle devm_clk_get() errors

devm_clk_get() returns an ERR_PTR on failure, not null. Fix the check to
avoid the board crashing when the clock isn't available.

Additionally, add the missing error handling for this function.

Fixes: 324df15a292e ("serial: qcom: add support for GENI serial driver")
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/serial/serial_msm_geni.c