[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)
commit137aa3617b3e7e780800855cdc5d3258aa0ea8d9
treea28ece9392671523edc154cef49370a79ec788d1
parentb883af30bcd1f37ed39948be529a13f5ac4ec6a2
[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