Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca8481c2 authored by Samuel Iglesias Gonsálvez's avatar Samuel Iglesias Gonsálvez Committed by Greg Kroah-Hartman
Browse files

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: default avatarSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7273b88e
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -853,11 +853,6 @@ static int __init ipoctal_init(void)


static void __exit ipoctal_exit(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);
	ipack_driver_unregister(&driver);
}
}