]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 22:47:09 +0000 (14:47 -0800)
commit30cf71d8fd3a62dbe3148163695c55e7828becf0
treef52985a1eebee736823eb8cc528edadc6365dc42
parente0134bbba1d1b0a802a3186f03715e9a4504dd38
i2c: Unregister dummy devices last on adapter removal

commit 5219bf884b6e2b54e734ca1799b6f0014bb2b4b7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/i2c-core.c