Skip to content

Commit

Permalink
blackfin: gpio: Unreserve gpio in special_gpio_free()
Browse files Browse the repository at this point in the history
In special_gpio_free(), call unreserve() rather than reserve() to release gpio.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Sonic Zhang <[email protected]>
  • Loading branch information
AxelLin authored and sonicz committed Jul 31, 2013
1 parent 6a19cc9 commit 5460b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/blackfin/cpu/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,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
Expand Down

0 comments on commit 5460b8d

Please sign in to comment.