Skip to content

Commit

Permalink
Staging: ipack/devices/ipoctal: change exiting procedure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Samuel Iglesias Gonsálvez authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent 7273b88 commit ca8481c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/ipack/devices/ipoctal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ca8481c

Please sign in to comment.