We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 900f5b3 commit bc3cbc0Copy full SHA for bc3cbc0
drivers/gpu/drm/mediatek/mtk_hdmi.c
@@ -1159,13 +1159,12 @@ static int mtk_hdmi_clk_enable_audio(struct mtk_hdmi *hdmi)
1159
return ret;
1160
1161
ret = clk_prepare_enable(hdmi->clk[MTK_HDMI_CLK_AUD_SPDIF]);
1162
- if (ret)
1163
- goto err;
+ if (ret) {
+ clk_disable_unprepare(hdmi->clk[MTK_HDMI_CLK_AUD_BCLK]);
1164
+ return ret;
1165
+ }
1166
1167
return 0;
-err:
- clk_disable_unprepare(hdmi->clk[MTK_HDMI_CLK_AUD_BCLK]);
1168
- return ret;
1169
}
1170
1171
static void mtk_hdmi_clk_disable_audio(struct mtk_hdmi *hdmi)
0 commit comments