]> git.baikalelectronics.ru Git - kernel.git/commit
[media] rc/nuvoton_cir: fix locking issue when calling nvt_disable_cir
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 1 Feb 2016 20:50:55 +0000 (18:50 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 2 Feb 2016 16:28:55 +0000 (14:28 -0200)
commit8156df6c58de63c51aa3c6a95894371a2f3b42bf
treea28ece9392671523edc154cef49370a79ec788d1
parent06e3504b1cb87badd96f38ec86c9d3ef0f37184b
[media] rc/nuvoton_cir: fix locking issue when calling nvt_disable_cir

nvt_disable_cir calls nvt_disable_logical_dev (that may sleep) and is
called from contexts holding a spinlock.
Fix this and remove the unneeded clearing of CIR_IREN as this is done
in nvt_cir_disable already.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/nuvoton-cir.c