Patchwork [U-Boot,2/2] gpio: adi_gpio2: Unreserve gpio in special_gpio_free()

login
register
mail settings
Submitter Axel Lin
Date June 26, 2013, 2:10 a.m.
Message ID <1372212604.5574.1.camel@phoenix>
Download mbox | patch
Permalink /patch/254548/
State Accepted, archived
Delegated to: Sonic Zhang
Headers show

Comments

Axel Lin - June 26, 2013, 2:10 a.m.
In special_gpio_free(), call unreserve() rather than reserve() to release gpio.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/gpio/adi_gpio2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Sonic Zhang - June 26, 2013, 3:35 a.m.
Acked-by: Sonic Zhang <sonic.zhang@analog.com>

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

Patch

diff --git a/drivers/gpio/adi_gpio2.c b/drivers/gpio/adi_gpio2.c
index 7a034eb..051073c 100644
--- a/drivers/gpio/adi_gpio2.c
+++ b/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