[PATCH] clk: mediatek: reset: Return regmap's error code

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Wed Jul 17 05:51:25 PDT 2024


Il 17/07/24 13:58, Fei Shao ha scritto:
> device_node_to_regmap() can return different errors, and it's better
> practice to pass them to callers.
> 
> Clean up the hardcoded -EINVAL and use PTR_ERR(regmap) instead.
> 
> Signed-off-by: Fei Shao <fshao at chromium.org>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>





More information about the Linux-mediatek mailing list