aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-08-14 12:32:11 +0000
committerJohn Crispin <john@openwrt.org>2012-08-14 12:32:11 +0000
commit5f8ffb88733dcc681075e94710e58133b8564b77 (patch)
tree6c8bd64a4b7740d12bcce520742d5dcffb9ecd9d /target/linux/generic
parent1af7a2c5229f34de9125bc030ef7e79d7a883471 (diff)
downloadupstream-5f8ffb88733dcc681075e94710e58133b8564b77.tar.gz
upstream-5f8ffb88733dcc681075e94710e58133b8564b77.tar.bz2
upstream-5f8ffb88733dcc681075e94710e58133b8564b77.zip
fixes gpio_dev un/reload balancing
Signed-off-by: SHI Bin <shibin@ctsing.com> SVN-Revision: 33183
Diffstat (limited to 'target/linux/generic')
-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 0f428bd38b..c741573026 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;
}