From: Jean Delvare Date: Sat, 30 Sep 2006 15:18:59 +0000 (+0200) Subject: [PATCH] i2c: Prevent deadlock on i2c client registration X-Git-Tag: v2.6.19-rc1~642 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77ed74da26f50fa28471571ee7a2251b77526d84;p=pandora-kernel.git [PATCH] i2c: Prevent deadlock on i2c client registration Delay the call to adapter->client_register() until after we are certain that the client registration is a success. At this point the client is fully initialized and we no longer hold the adapter->clist mutex, so this should prevent the deadlocks if the client_register() callback needs to take that mutex too, as is the case for the bttv driver. This fixes bug #7234. Signed-off-by: Jean Delvare Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed