mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-25 02:46:48 +00:00
fixes gpio_dev un/reload balancing
Signed-off-by: SHI Bin <shibin@ctsing.com> SVN-Revision: 33183
This commit is contained in:
parent
1af7a2c522
commit
5f8ffb8873
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user