From: Olivier Moysan Date: Mon, 22 Jul 2019 16:05:58 +0000 (+0200) Subject: drm/bridge: sii902x: fix missing reference to mclk clock X-Git-Tag: v5.4-rc1~32^2~20^2~112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=365d28c92f8cd3d3860f8dd057a8c136e24b3698;p=platform%2Fkernel%2Flinux-rpi.git drm/bridge: sii902x: fix missing reference to mclk clock Add devm_clk_get call to retrieve reference to master clock. Fixes: ff5781634c41 ("drm/bridge: sii902x: Implement HDMI audio support") Signed-off-by: Olivier Moysan Reviewed-by: Jyri Sarha Acked-by: Andrzej Hajda Link: https://patchwork.freedesktop.org/patch/msgid/1563811560-29589-2-git-send-email-olivier.moysan@st.com --- diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm/bridge/sii902x.c index c2f97e5..962931c 100644 --- a/drivers/gpu/drm/bridge/sii902x.c +++ b/drivers/gpu/drm/bridge/sii902x.c @@ -751,6 +751,7 @@ static int sii902x_audio_codec_init(struct sii902x *sii902x, sii902x->audio.i2s_fifo_sequence[i] |= audio_fifo_id[i] | i2s_lane_id[lanes[i]] | SII902X_TPI_I2S_FIFO_ENABLE; + sii902x->audio.mclk = devm_clk_get(dev, "mclk"); if (IS_ERR(sii902x->audio.mclk)) { dev_err(dev, "%s: No clock (audio mclk) found: %ld\n", __func__, PTR_ERR(sii902x->audio.mclk));