Staging: ipack/devices/ipoctal: change exiting procedure
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 11 Sep 2012 11:35:07 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 19:18:11 +0000 (12:18 -0700)
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>
drivers/staging/ipack/devices/ipoctal.c

index c94a9dffd1e5cf2fbcb70a81ff07c4ce43501866..272832f7c80e4c7f5607f6ee3ebb4b4696aa6248 100644 (file)
@@ -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);
 }