Skip to content
Commit c807dbed authored by Tero Kristo's avatar Tero Kristo
Browse files

clk: ti: fix ti_clk_get_reg_addr error handling



There is a case where NULL can be a valid return value for
ti_clk_get_reg_addr, specifically the case where both the provider index
and register offsets are zero. In this case, the current error checking
against a NULL pointer will fail. Thus, change the API to return a
ERR_PTR value in an error case, and change all the users of this API to
check against IS_ERR instead.

Signed-off-by: default avatarTero Kristo <t-kristo@ti.com>
Acked-by: default avatarMichael Turquette <mturquette@linaro.org>
parent c517d838
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment