]> git.baikalelectronics.ru Git - kernel.git/commit
leds: lp5521/5523: Remove duplicate mutex
authorMilo Kim <milo.kim@ti.com>
Tue, 3 Dec 2013 01:21:44 +0000 (17:21 -0800)
committerBryan Wu <cooloney@gmail.com>
Fri, 10 Jan 2014 22:48:07 +0000 (14:48 -0800)
commit720c1c41365e0e0bea58939cbf2eb4c91ab73434
tree8ea603b96e81f39b77696e59605fc53836750d3f
parent286f523a1c3bbae0cc5a74f5dafa0481dc0f414a
leds: lp5521/5523: Remove duplicate mutex

It can be a problem when a pattern is loaded via the firmware interface.
LP55xx common driver has already locked the mutex in 'lp55xx_firmware_loaded()'.
So it should be deleted.

On the other hand, locks are required in store_engine_load()
on updating program memory.

Reported-by: Pali Rohár <pali.rohar@gmail.com>
Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Cc: <stable@vger.kernel.org>
drivers/leds/leds-lp5521.c
drivers/leds/leds-lp5523.c