Fix the gpio init (#2148)
[openwrt.git] / target / linux / ar7-2.6 / files / drivers / char / ar7_gpio.c
index d8dc2e1..a5245da 100644 (file)
@@ -30,8 +30,7 @@
 
 #include <linux/types.h>
 #include <linux/cdev.h>
-
-#include <asm/gpio.h>
+#include <gpio.h>
 
 #define DRVNAME "ar7_gpio"
 #define LONGNAME "TI AR7 GPIOs Driver"
@@ -142,6 +141,8 @@ static int __init ar7_gpio_init(void)
 
        ar7_gpio_major = rc;
 
+       rc = 0;
+
        goto out;
 
 out_put:
This page took 0.027798 seconds and 4 git commands to generate.