From: Feng Tang Date: Tue, 29 Nov 2011 07:19:10 +0000 (+0800) Subject: i2c-eg20t: correct the driver init order of pch_i2c_probe() X-Git-Tag: v3.2-rc7~43^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d5fb5ea7d0e6bc84a523c39a666d7eb1a7e43de;p=pandora-kernel.git i2c-eg20t: correct the driver init order of pch_i2c_probe() Before registering an adapter to i2c subsystem, we need make sure driver is ready for incoming i2c xfer, becasue the i2c_add_adapter() may trigger a i2c device driver's proble function which may start some real i2c xfer. I met this issue when integrating a TSC2007 i2c touch screen device with the i2c-eg20t driver. This patch will call request_irq() and hw init before calling i2c_add_adapter(). Signed-off-by: Feng Tang Signed-off-by: Ben Dooks --- Reading git-diff-tree failed