i2c-dev: Unbound new-style i2c clients aren't busy
authorJean Delvare <khali@linux-fr.org>
Thu, 15 Nov 2007 18:24:01 +0000 (19:24 +0100)
committerJean Delvare <khali@hyperion.delvare>
Thu, 15 Nov 2007 18:24:01 +0000 (19:24 +0100)
Let i2c-dev deal properly with new-style i2c clients. Instead of
considering them always busy, it needs to check wether a driver is
bound to them or not.

This is still not completely correct, as the client could become
busy later, but the same problem already existed before new-style
clients were introduced. We'll want to fix it someday.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
drivers/i2c/i2c-dev.c

Simple merge