diff options
author | Fei Shao <fshao@chromium.org> | 2024-07-17 19:58:52 +0800 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2024-07-29 16:01:23 -0700 |
commit | ae8ca031f590dc2c33f0f0286034d34e629099ce (patch) | |
tree | 61671fa5711e333f2a719e1e7858d1658bffa024 /lib/mpi/mpi-sub-ui.c | |
parent | 8400291e289ee6b2bf9779ff1c83a291501f017b (diff) | |
download | linux-ae8ca031f590dc2c33f0f0286034d34e629099ce.tar.gz linux-ae8ca031f590dc2c33f0f0286034d34e629099ce.tar.bz2 linux-ae8ca031f590dc2c33f0f0286034d34e629099ce.zip |
clk: mediatek: reset: Return regmap's error code
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@chromium.org>
Link: https://lore.kernel.org/r/20240717115919.975474-1-fshao@chromium.org
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions