[U-Boot] [PATCH 1/2] blackfin: gpio: Unreserve gpio in special_gpio_free()

Sonic Zhang sonic.adi at gmail.com
Wed Jun 26 05:34:50 CEST 2013


Acked-by: Sonic Zhang <sonic.zhang at analog.com>

On Wed, Jun 26, 2013 at 10:09 AM, Axel Lin <axel.lin at ingics.com> wrote:
> In special_gpio_free(), call unreserve() rather than reserve() to release gpio.
>
> Signed-off-by: Axel Lin <axel.lin at ingics.com>
> ---
>  arch/blackfin/cpu/gpio.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/blackfin/cpu/gpio.c b/arch/blackfin/cpu/gpio.c
> index f74a0b7..a4d10d5 100644
> --- a/arch/blackfin/cpu/gpio.c
> +++ b/arch/blackfin/cpu/gpio.c
> @@ -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
> --
> 1.8.1.2
>
>
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot


More information about the U-Boot mailing list