From: Jean Delvare Date: Mon, 10 Sep 2012 08:14:02 +0000 (+0200) Subject: i2c-core: Fix for lockdep validator X-Git-Tag: v3.6-rc6~38^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=390946b17260797635cd9e65496b5a17b2db0a5d;p=pandora-kernel.git i2c-core: Fix for lockdep validator If kernel is compiled with CONFIG_PROVE_LOCKING the validator raises an error when a multiplexer is removed via sysfs and sub-clients are connected to it. This is a false positive. Documentation/lockdep-design.txt recommends to handle this via calls to mutex_lock_nested(). Based on an earlier fix from Michael Lawnick. Note that the extra code resolves to nothing unless CONFIG_DEBUG_LOCK_ALLOC=y. Signed-off-by: Jean Delvare Cc: Michael Lawnick --- Reading git-diff-tree failed