From: David Brownell Date: Sun, 27 Jan 2008 17:14:51 +0000 (+0100) Subject: i2c-remove-redundant-i2c_client-list.patch X-Git-Tag: v2.6.25-rc1~1185 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86ec5ec872566dda74848e09904bb5380cab962e;p=pandora-kernel.git i2c-remove-redundant-i2c_client-list.patch This goes on top of the patch removing most i2c_adapter.clients usage, updating i2c_attach_client: - Don't call device_register() while holding clist_lock. This removes a self-deadlock when on the i2c_driver.probe() path, for drivers that need to attach new devices (e.g. dummies). - Remove a redundant address check. The driver model core does this as a consequence of guaranteeing unique names. - Move the "device registered" diagnostic so that it never lies; previously, on error paths it would falsely report success. Signed-off-by: David Brownell Signed-off-by: Jean Delvare --- Reading git-diff-tree failed