aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/mediatek/clk-mt6797-img.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wenst@chromium.org>2022-05-19 15:16:07 +0800
committerStephen Boyd <sboyd@kernel.org>2022-05-19 16:57:56 -0700
commit012715ad7cc44b70d29a8dfa87448ecddba608d0 (patch)
tree641afbdd7422cac044ce492d76ea0f02d42d00f2 /drivers/clk/mediatek/clk-mt6797-img.c
parentclk: mediatek: Make mtk_clk_register_composite() static (diff)
downloadlinux-dev-012715ad7cc44b70d29a8dfa87448ecddba608d0.tar.xz
linux-dev-012715ad7cc44b70d29a8dfa87448ecddba608d0.zip
clk: mediatek: apmixed: Drop error message from clk_register() failure
mtk_clk_register_ref2usb_tx() prints an error message if clk_register() fails. It doesn't if kzalloc() fails though. The caller would then tack on its own error message to handle this. Also, All other clk registration functions in the MediaTek clk library leave the error message printing to the bulk registration functions, while the helpers that register individual clks just return error codes. Drop the error message that is printed when clk_register() fails in mtk_clk_register_ref2usb_tx() to make its behavior consistent both across its failure modes, and with the rest of the driver library. Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: Miles Chen <miles.chen@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Tested-by: Miles Chen <miles.chen@mediatek.com> Link: https://lore.kernel.org/r/20220519071610.423372-3-wenst@chromium.org Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/mediatek/clk-mt6797-img.c')
0 files changed, 0 insertions, 0 deletions