projects
/
openwrt
/
staging
/
stintel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1af7a2c
)
fixes gpio_dev un/reload balancing
author
John Crispin
<john@openwrt.org>
Tue, 14 Aug 2012 12:32:11 +0000
(12:32 +0000)
committer
John Crispin
<john@openwrt.org>
Tue, 14 Aug 2012 12:32:11 +0000
(12:32 +0000)
Signed-off-by: SHI Bin <shibin@ctsing.com>
SVN-Revision: 33183
target/linux/generic/files/drivers/char/gpio_dev.c
patch
|
blob
|
history
diff --git
a/target/linux/generic/files/drivers/char/gpio_dev.c
b/target/linux/generic/files/drivers/char/gpio_dev.c
index 0f428bd38ba15eefdf25d90f4fb21f23307ee938..c741573026e213fe990c7230f95e26a4f8e06735 100644
(file)
--- 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;
}