i2c: Keep client->driver and client->dev.driver in sync
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 12 Mar 2008 13:15:00 +0000 (14:15 +0100)
committerJean Delvare <khali@hyperion.delvare>
Wed, 12 Mar 2008 13:15:00 +0000 (14:15 +0100)
commit50c3304a5e1e5217fc6b58fb686edc7d1114f2fa
treeb61f31a58fc39f965ff21e0f03315c36c9bd122b
parent5edc68b8530ff1b3133d057350da98c93cca5a82
i2c: Keep client->driver and client->dev.driver in sync

Ensure that client->driver is set to NULL if the probe() returns an
error (this keeps client->driver and client->dev.driver in sync).

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c