summaryrefslogtreecommitdiff
path: root/drivers/media/rc/nuvoton-cir.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2015-10-29 21:19:19 (GMT)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-11-19 11:34:02 (GMT)
commitd5b04311cb31ba351a278d2a32487bf09843cb55 (patch)
tree6e65bb04c1b25b82118142a3e1269805c9f8d580 /drivers/media/rc/nuvoton-cir.c
parent2bbf9e061a8355451c1e83d405aaa0dc8865db46 (diff)
downloadlinux-d5b04311cb31ba351a278d2a32487bf09843cb55.tar.xz
[media] media: rc: nuvoton-cir: remove unneeded lock
chip_major / chip_minor are accessed sequentially in probe only. Therefore no lock is needed. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/rc/nuvoton-cir.c')
-rw-r--r--drivers/media/rc/nuvoton-cir.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c
index 3d9a4cf..4d8e12f 100644
--- a/drivers/media/rc/nuvoton-cir.c
+++ b/drivers/media/rc/nuvoton-cir.c
@@ -227,7 +227,6 @@ static void cir_wake_dump_regs(struct nvt_dev *nvt)
/* detect hardware features */
static int nvt_hw_detect(struct nvt_dev *nvt)
{
- unsigned long flags;
u8 chip_major, chip_minor;
char chip_id[12];
bool chip_unknown = false;
@@ -279,10 +278,8 @@ static int nvt_hw_detect(struct nvt_dev *nvt)
nvt_efm_disable(nvt);
- spin_lock_irqsave(&nvt->nvt_lock, flags);
nvt->chip_major = chip_major;
nvt->chip_minor = chip_minor;
- spin_unlock_irqrestore(&nvt->nvt_lock, flags);
return 0;
}