Commit 5460b8d469ca9510cfc45463eaf7eecfca68b8a5

Authored by Axel Lin
Committed by Sonic Zhang
1 parent 6a19cc9df0

blackfin: gpio: 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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

arch/blackfin/cpu/gpio.c
... ... @@ -662,8 +662,8 @@
662 662 return;
663 663 }
664 664  
665   - reserve(special_gpio, gpio);
666   - reserve(peri, gpio);
  665 + unreserve(special_gpio, gpio);
  666 + unreserve(peri, gpio);
667 667 set_label(gpio, "free");
668 668 }
669 669 #endif