summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i2c
diff options
context:
space:
mode:
authorRussell King2016-11-18 00:55:00 +0100
committerRussell King2016-11-18 00:59:39 +0100
commitba300c1787f793d9d6c84bb30d12b684c957f1b5 (patch)
tree16693b653aefa7be201a490e830713f84349f51d /drivers/gpu/drm/i2c
parentMerge branch 'drm-tda998x-mali' into drm-tda998x-devel (diff)
downloadkernel-qcow2-linux-ba300c1787f793d9d6c84bb30d12b684c957f1b5.tar.gz
kernel-qcow2-linux-ba300c1787f793d9d6c84bb30d12b684c957f1b5.tar.xz
kernel-qcow2-linux-ba300c1787f793d9d6c84bb30d12b684c957f1b5.zip
drm/i2c: tda998x: move audio mutex initialisation
We will need the audio mutex initialised in all cases, so lets move this to be early, rather than only being initialised for the DT case. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/i2c')
-rw-r--r--drivers/gpu/drm/i2c/tda998x_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c
index 088900d78ceb..168c0b4b8f47 100644
--- a/drivers/gpu/drm/i2c/tda998x_drv.c
+++ b/drivers/gpu/drm/i2c/tda998x_drv.c
@@ -1405,6 +1405,8 @@ static int tda998x_create(struct i2c_client *client, struct tda998x_priv *priv)
int rev_lo, rev_hi, ret;
unsigned short cec_addr;
+ mutex_init(&priv->audio_mutex); /* Protect access from audio thread */
+
priv->vip_cntrl_0 = VIP_CNTRL_0_SWAP_A(2) | VIP_CNTRL_0_SWAP_B(3);
priv->vip_cntrl_1 = VIP_CNTRL_1_SWAP_C(0) | VIP_CNTRL_1_SWAP_D(1);
priv->vip_cntrl_2 = VIP_CNTRL_2_SWAP_E(4) | VIP_CNTRL_2_SWAP_F(5);
@@ -1519,8 +1521,6 @@ static int tda998x_create(struct i2c_client *client, struct tda998x_priv *priv)
priv->vip_cntrl_2 = video;
}
- mutex_init(&priv->audio_mutex); /* Protect access from audio thread */
-
ret = tda998x_get_audio_ports(priv, np);
if (ret)
goto fail;