From: Jean Delvare Date: Sun, 4 Oct 2009 20:53:46 +0000 (+0200) Subject: macintosh: Don't assume i2c device probing always succeeds X-Git-Tag: v2.6.32-rc3~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f6b35e133fe4313277b30fc1a7ea313875ea6c9;p=pandora-kernel.git macintosh: Don't assume i2c device probing always succeeds If i2c device probing fails, then there is no driver to dereference after calling i2c_new_device(). Stop assuming that probing will always succeed, to avoid NULL pointer dereferences. We have an easier access to the driver anyway. Signed-off-by: Jean Delvare Tested-by: Tim Shepard Cc: Colin Leroy --- Reading git-diff-tree failed