]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commite70988d1aaf73221355e06125c9937bd4b27761c
tree8ea603b96e81f39b77696e59605fc53836750d3f
parent802eee95bde72fd0cd0f3a5b2098375a487d1eda
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