summaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-08-14 12:32:11 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-08-14 12:32:11 +0000
commit6a28aa2599ac85f640e47183b5e95d0540a27bc3 (patch)
tree577cff030bcce7de9762deb8f0741453fef7f6e6 /target/linux
parentbd7766596466d7c65e8861fa686335ee9466e715 (diff)
[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
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/char/gpio_dev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/char/gpio_dev.c b/target/linux/generic/files/drivers/char/gpio_dev.c
index 0f428bd38..c74157302 100644
--- a/target/linux/generic/files/drivers/char/gpio_dev.c
+++ b/target/linux/generic/files/drivers/char/gpio_dev.c
@@ -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;
}