Skip to content

Commit 32bff1c

Browse files
AngeloGioacchino Del RegnoChun-Kuang Hu
authored andcommitted
drm/mediatek: mtk_hdmi: Cleanup function mtk_hdmi_resume()
Remove the error print in case of mtk_hdmi_clk_enable_audio() failures: since the APIs will already print on their own, having one in there is redundant. Reviewed-by: CK Hu <[email protected]> Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Link: https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent cb288d2 commit 32bff1c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

drivers/gpu/drm/mediatek/mtk_hdmi.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,15 +1760,8 @@ static __maybe_unused int mtk_hdmi_suspend(struct device *dev)
17601760
static __maybe_unused int mtk_hdmi_resume(struct device *dev)
17611761
{
17621762
struct mtk_hdmi *hdmi = dev_get_drvdata(dev);
1763-
int ret = 0;
17641763

1765-
ret = mtk_hdmi_clk_enable_audio(hdmi);
1766-
if (ret) {
1767-
dev_err(dev, "hdmi resume failed!\n");
1768-
return ret;
1769-
}
1770-
1771-
return 0;
1764+
return mtk_hdmi_clk_enable_audio(hdmi);
17721765
}
17731766

17741767
static SIMPLE_DEV_PM_OPS(mtk_hdmi_pm_ops, mtk_hdmi_suspend, mtk_hdmi_resume);

0 commit comments

Comments
 (0)