From: Jani Nikula Date: Mon, 13 Aug 2012 14:33:02 +0000 (+0300) Subject: drm/i915: ensure i2c adapter is all set before adding it X-Git-Tag: v3.6-rc2~9^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cee25168e9c4ef7f9417632af2dc78b8521dfda7;p=pandora-kernel.git drm/i915: ensure i2c adapter is all set before adding it i2c_add_adapter() may do i2c transfers on the bus to detect supported devices. Therefore the adapter needs to be all set before adding it. This was not the case for the bit-banging fallback, resulting in an oops if the device detection GMBUS transfers timed out. Fix the issue by calling i2c_add_adapter() only after intel_gpio_setup(). LKML-Reference: <5021F00B.7000503@ionic.de> Tested-by: Mihai Moldovan Signed-off-by: Jani Nikula Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed