Skip to content
Snippets Groups Projects
Commit 5f8ffb88 authored by John Crispin's avatar John Crispin
Browse files

fixes gpio_dev un/reload balancing


Signed-off-by: default avatarSHI Bin <shibin@ctsing.com>

SVN-Revision: 33183
parent 1af7a2c5
No related branches found
No related tags found
No related merge requests found
......@@ -141,6 +141,8 @@ out:
static int
gpio_remove(struct platform_device *dev)
{
device_destroy(gpiodev_class, MKDEV(dev_major, 0));
class_destroy(gpiodev_class);
unregister_chrdev(dev_major, DEVNAME);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment