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

From: AngeloGioacchino Del Regno
Date: Wed Jul 17 2024 - 08:51:38 EST


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@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>