[media] rainshadow-cec: Fix missing spin_lock_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 25 Apr 2017 03:12:46 +0000 (00:12 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 18 May 2017 10:30:31 +0000 (07:30 -0300)
commitbe321a82bf8ee2e59734dd0d1fa1183a55a81d5d
treed180efda112cf4a65bd437582951bcaea0469248
parente3b4d10cc057522353c4a02f2f90dca6a52e006f
[media] rainshadow-cec: Fix missing spin_lock_init()

The driver allocates the spinlock but not initialize it.
Use spin_lock_init() on it to initialize it correctly.

This is detected by Coccinelle semantic patch.

Fixes: 0f314f6c2e77 ("[media] rainshadow-cec: new RainShadow Tech HDMI
CEC driver")

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/rainshadow-cec/rainshadow-cec.c