leds: lp5521/5523: Remove duplicate mutex
authorMilo Kim <milo.kim@ti.com>
Tue, 3 Dec 2013 01:21:44 +0000 (17:21 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2014 23:31:42 +0000 (15:31 -0800)
commitac4de081312a65427e847157f46ea35cab2d7b82
tree5f67bc98bb82fe2a46aa190412a5f79707e0825b
parent778b3b76c34292c7d27aa0faad5c9026a2cacf43
leds: lp5521/5523: Remove duplicate mutex

commit e70988d1aaf73221355e06125c9937bd4b27761c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/leds/leds-lp5521.c
drivers/leds/leds-lp5523.c