diff options
author | Samuel Iglesias Gonsálvez <siglesias@igalia.com> | 2012-09-11 15:35:07 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-11 23:18:11 +0400 |
commit | ca8481c23cc841aeded46a1ad6964c93e8167dd0 (patch) | |
tree | 7329356c3ed01aa8e56950847d16e5fd0561c590 /drivers | |
parent | 7273b88ebfc1b3ea5387e37fae8b1d77e59e169f (diff) | |
download | linux-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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/ipack/devices/ipoctal.c | 5 |
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); } |