]> 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)
commit6373e8a8032b21d0e013c9d8549b2050cf1644ce
tree8ea603b96e81f39b77696e59605fc53836750d3f
parent82efeea4b22a7d1b1846300f056938d7e42bdcd2
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