Skip to content
Commit 399d6b26 authored by Jean Delvare's avatar Jean Delvare Committed by Jean Delvare
Browse files

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: default avatarJean Delvare <khali@linux-fr.org>
Cc: Ingo Molnar <mingo@elte.hu>
parent 796aadeb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment