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

Commit 9efd9e69 authored by Linus Walleij's avatar Linus Walleij
Browse files

gpio: remember to finally free gpio_device



When the device core reference count for the device goes to
0 and it calls .release() we free resources and so can also
finally free up the GPIO state container, struct gpio_device.

Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c366c76a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -405,6 +405,7 @@ static void gpiodevice_release(struct device *dev)
	cdev_del(&gdev->chrdev);
	list_del(&gdev->list);
	ida_simple_remove(&gpio_ida, gdev->id);
	kfree(gdev);
}

/**