OSDN Git Service

mfd: ti_am335x_tscadc: Avoid possible deadlock of reg_lock
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 22 Oct 2013 14:12:39 +0000 (16:12 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Oct 2013 15:22:37 +0000 (16:22 +0100)
commit317b2099938fe6f27e51c4b58e76f4de8212d3e6
tree9236b2187e66765b2c1d7b63644e7df56ff1b15f
parentdf73de9b0d412915384396637bf67ef9208161e9
mfd: ti_am335x_tscadc: Avoid possible deadlock of reg_lock

Since the addition of continuous sampling mode and shared irq support,
the reg_lock lock can be taken with and without interrupts. This patch
uses the *_irq* variant which should be used in order to avaoid a deadlock.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ti_am335x_tscadc.c