i2c: Unregister dummy devices last on adapter removal
authorJean Delvare <khali@linux-fr.org>
Fri, 14 Jan 2011 21:03:49 +0000 (22:03 +0100)
committerJean Delvare <khali@endymion.delvare>
Fri, 14 Jan 2011 21:03:49 +0000 (22:03 +0100)
commit5219bf884b6e2b54e734ca1799b6f0014bb2b4b7
treeb3ea8be732ccca2152d642a7ead63270a592c8e1
parent891cc2283216bf76f387546f0e220caf8ce9fbf9
i2c: Unregister dummy devices last on adapter removal

Remove real devices first and dummy devices last. This gives device
driver which instantiated dummy devices themselves a chance to clean
them up before we do.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Hans Verkuil <hverkuil@xs4all.nl>
Cc: stable@kernel.org
drivers/i2c/i2c-core.c