From: Dmitry Torokhov Date: Fri, 17 Oct 2008 15:51:12 +0000 (+0200) Subject: hwmon: (ams) Fix locking issues X-Git-Tag: v2.6.28-rc1~259^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee4cd32ee8a68e22081f698602e4315fb4272853;p=pandora-kernel.git hwmon: (ams) Fix locking issues Use a separate mutex to serialize input device creation/removal, otheriwse we deadlock if we try to remove input device while it is being polled. Also do not take ams_info.lock when it is not needed. Signed-off-by: Dmitry Torokhov Signed-off-by: Johannes Berg Signed-off-by: Jean Delvare --- Reading git-diff-tree failed