i2c: Sanity checks on adapter registration
authorJean Delvare <khali@linux-fr.org>
Mon, 15 Nov 2010 21:40:38 +0000 (22:40 +0100)
committerJean Delvare <khali@endymion.delvare>
Mon, 15 Nov 2010 21:40:38 +0000 (22:40 +0100)
commit2236baa75f704851d3cd3310569058151acb1f06
treea34e5684bff7127a849c44de2a5b517811917d34
parente1e18ee1cb58228a577668284c1dd03d859d7157
i2c: Sanity checks on adapter registration

Make sure I2C adapters being registered have the required struct
fields set. If they don't, problems will happen later.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c