summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/therm_adt746x.c
diff options
context:
space:
mode:
authorSamu Onkalo <samu.p.onkalo@nokia.com>2011-01-13 01:59:19 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-13 17:03:06 +0100
commitd4e7ad03e84b2301be4f9a39ef2778126699ff0c (patch)
treef9eddca8aed77b76aa3a7690ae25fa5b5fc2c467 /drivers/macintosh/therm_adt746x.c
parentleds: lp5523: fix circular locking (diff)
downloadlinux-d4e7ad03e84b2301be4f9a39ef2778126699ff0c.tar.xz
linux-d4e7ad03e84b2301be4f9a39ef2778126699ff0c.zip
leds: lp5521: fix circular locking
Driver contained possibility for circular locking. One lock is held by sysfs-core and another one by the driver itself. This happened when the driver created or removed sysfs entries dynamically. There is no real need to do those operations. Now all the sysfs entries are created at probe and removed at removal. Engine load sysfs entries are now visible all the time. However, access to the entries fails if the engine is disabled or running. Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com> Cc: Arun Murthy <arun.murthy@stericsson.com> Reviewed-by: Ilkka Koskinen <ilkka.koskinen@nokia.com> Cc: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/macintosh/therm_adt746x.c')
0 files changed, 0 insertions, 0 deletions