Explorar o código

fixes gpio_dev un/reload balancing

Signed-off-by: SHI Bin <[email protected]>

SVN-Revision: 33183
John Crispin %!s(int64=13) %!d(string=hai) anos
pai
achega
5f8ffb8873
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      target/linux/generic/files/drivers/char/gpio_dev.c

+ 2 - 0
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;
 }