]> err.no Git - linux-2.6/commit
i2c: Clear i2c_adapter.dev on adapter removal
authorJean Delvare <khali@linux-fr.org>
Wed, 16 Jul 2008 17:30:05 +0000 (19:30 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Wed, 16 Jul 2008 17:30:05 +0000 (19:30 +0200)
commitbd4bc3dbded9cd7b2bdca6bba1aecb4251a8039d
tree463f7b4283b3924abf504e4db020050bd2b55db5
parent45158894d4d6704afbb4cefe55e5f6ca279fe12a
i2c: Clear i2c_adapter.dev on adapter removal

Clear i2c_adapter.dev on adapter removal. This makes it possible to
re-add the adapter at a later point, which some drivers
(i2c-amd756-s4882, i2c-nforce2-s4985) actually do.

This fixes a bug reported by John Stultz here:
  http://lkml.org/lkml/2008/7/15/720
and by Ingo Molar there:
  http://lkml.org/lkml/2008/7/16/78

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: John Stultz <johnstul@us.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
drivers/i2c/busses/i2c-amd756-s4882.c
drivers/i2c/busses/i2c-nforce2-s4985.c
drivers/i2c/i2c-core.c