i2c-dev: attach/detach_adapter cleanups
authorJean Delvare <khali@linux-fr.org>
Sun, 3 Sep 2006 20:19:25 +0000 (22:19 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Sep 2006 22:38:51 +0000 (15:38 -0700)
commitb32d20dc8b187e03605f091dbde9a78676a2a642
tree893976c1632c6b99ed3f7f510bb34f2a846cea9e
parent7a8d29cec7a53cf1a29dc5055aa9d1fa0f95830f
i2c-dev: attach/detach_adapter cleanups

i2c-dev: attach/detach_adapter cleanups

* Only print that an adapter was attached when it succeeds.
* i2c_dev == NULL on detach simply means that the attach failed
  before, this isn't an error per se.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/i2c-dev.c