Browse Source

gpio: adi_gpio2: Unreserve gpio in special_gpio_free()

In special_gpio_free(), call unreserve() rather than reserve() to release gpio.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Axel Lin 12 năm trước cách đây
mục cha
commit
2ced773a1a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      drivers/gpio/adi_gpio2.c

+ 2 - 2
drivers/gpio/adi_gpio2.c

@@ -352,8 +352,8 @@ void special_gpio_free(unsigned gpio)
 		return;
 	}
 
-	reserve(special_gpio, gpio);
-	reserve(peri, gpio);
+	unreserve(special_gpio, gpio);
+	unreserve(peri, gpio);
 	set_label(gpio, "free");
 }
 #endif