From: Samu Onkalo Date: Thu, 13 Jan 2011 00:59:19 +0000 (-0800) Subject: leds: lp5521: fix circular locking X-Git-Tag: v2.6.38-rc1~392 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4e7ad03e84b2301be4f9a39ef2778126699ff0c;p=pandora-kernel.git 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 Cc: Arun Murthy Reviewed-by: Ilkka Koskinen Cc: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed