mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[kernel] fixes gpio_dev un/reload balancing
Signed-off-by: SHI Bin <shibin@ctsing.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33183 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -141,6 +141,8 @@ out:
|
|||||||
static int
|
static int
|
||||||
gpio_remove(struct platform_device *dev)
|
gpio_remove(struct platform_device *dev)
|
||||||
{
|
{
|
||||||
|
device_destroy(gpiodev_class, MKDEV(dev_major, 0));
|
||||||
|
class_destroy(gpiodev_class);
|
||||||
unregister_chrdev(dev_major, DEVNAME);
|
unregister_chrdev(dev_major, DEVNAME);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user