mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
i2s: early initialization spin_lock for regiter read/write
This commit is contained in:
parent
0c3f144069
commit
e774f49a4e
|
|
@ -636,6 +636,7 @@ static int __devinit rockchip_i2s_probe(struct platform_device *pdev)
|
|||
struct snd_soc_dai_driver *dai;
|
||||
int ret;
|
||||
|
||||
spin_lock_init(&i2s->spinlock_wr);
|
||||
#if defined(CONFIG_SND_I2S_USE_18V)
|
||||
writel_relaxed(0x2000200,RK30_GRF_BASE + GRF_IO_CON4);//bit9: 1,1.8v;0,3.3v
|
||||
#elif defined(CONFIG_SND_I2S_USE_33V)
|
||||
|
|
@ -764,7 +765,6 @@ static int __devinit rockchip_i2s_probe(struct platform_device *pdev)
|
|||
if (ret != 0)
|
||||
goto err_i2sv2;
|
||||
|
||||
spin_lock_init(&i2s->spinlock_wr);
|
||||
return 0;
|
||||
|
||||
err_i2sv2:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user