summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>2012-09-11 15:35:07 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-11 23:18:11 +0400
commitca8481c23cc841aeded46a1ad6964c93e8167dd0 (patch)
tree7329356c3ed01aa8e56950847d16e5fd0561c590
parent7273b88ebfc1b3ea5387e37fae8b1d77e59e169f (diff)
downloadlinux-ca8481c23cc841aeded46a1ad6964c93e8167dd0.tar.xz
Staging: ipack/devices/ipoctal: change exiting procedure
The ipoctal devices can be uninstalled from the ipack_driver_unregister() call as the device model calles the bus's .remove() function for each device registered by the driver and it will execute the .remove() function of the ipoctal driver. Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/ipack/devices/ipoctal.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/ipack/devices/ipoctal.c b/drivers/staging/ipack/devices/ipoctal.c
index c94a9dffd1e5..272832f7c80e 100644
--- a/drivers/staging/ipack/devices/ipoctal.c
+++ b/drivers/staging/ipack/devices/ipoctal.c
@@ -853,11 +853,6 @@ static int __init ipoctal_init(void)
static void __exit ipoctal_exit(void)
{
- struct ipoctal *p, *next;
-
- list_for_each_entry_safe(p, next, &ipoctal_list, list)
- p->dev->bus->ops->remove_device(p->dev);
-
ipack_driver_unregister(&driver);
}