]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9db9a689cfc39155c48b1f9243e16c56bf6bd728
treeb3ea8be732ccca2152d642a7ead63270a592c8e1
parent8febeb17b455040ec5851efe864c7de4699a3f64
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