From: Jean Delvare Date: Sun, 10 Aug 2008 20:56:15 +0000 (+0200) Subject: i2c: Fix oops on bus multiplexer driver loading X-Git-Tag: v2.6.27-rc3~54^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=399d6b26539d83dd734746dc2292d53fbc5807b2;p=pandora-kernel.git i2c: Fix oops on bus multiplexer driver loading The two I2C bus multiplexer drivers (i2c-amd756-s4882 and i2c-nforce2-s4985) make use of the bus they want to multiplex before checking if it is really present. Swap the instructions to test for presence first. This fixes a oops reported by Ingo Molnar. Signed-off-by: Jean Delvare Cc: Ingo Molnar --- Reading git-diff-tree failed