]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc1ab0b753ab1eb9e6cd480d0a56b82946186ef2a
tree0c399bdc4497ced5f168fa224a2c4c5ca63cfb5e
parent7cca4a2f23bb6c1ac1501fd0018a70870c583639
i2c-dev: Unbound new-style i2c clients aren't busy

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