]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:30 +0000 (12:46 -0400)
commit5221f73c8309a8cde70909c7b852350f7cd4b203
tree82f1fd36fd3b660d863c36892b138066a1a87939
parentfdb127b1666b32757b0f11878dfacffa9fe952fb
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: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/i2c/i2c-core.c