linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap
@ 2016-09-20 10:54 Arvind Yadav
  2016-09-21 10:17 ` Vladimir Zapolskiy
  2016-09-21 21:24 ` Stephen Boyd
  0 siblings, 2 replies; 4+ messages in thread
From: Arvind Yadav @ 2016-09-20 10:54 UTC (permalink / raw)
  To: mturquette, sboyd, vz, slemieux.tyco
  Cc: linux-clk, linux-arm-kernel, linux-kernel, Arvind Yadav

From: Arvind Yadav <arvind.yadav.cs@gmail.com>

Free memory mapping, if lpc32xx_clk_init is not successful.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 drivers/clk/nxp/clk-lpc32xx.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/nxp/clk-lpc32xx.c b/drivers/clk/nxp/clk-lpc32xx.c
index 90d740a..34c9735 100644
--- a/drivers/clk/nxp/clk-lpc32xx.c
+++ b/drivers/clk/nxp/clk-lpc32xx.c
@@ -1513,6 +1513,7 @@ static void __init lpc32xx_clk_init(struct device_node *np)
 	if (IS_ERR(clk_regmap)) {
 		pr_err("failed to regmap system control block: %ld\n",
 			PTR_ERR(clk_regmap));
+		iounmap(base);
 		return;
 	}
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap
  2016-09-20 10:54 [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap Arvind Yadav
@ 2016-09-21 10:17 ` Vladimir Zapolskiy
  2016-09-21 17:41   ` Sylvain Lemieux (gmail)
  2016-09-21 21:24 ` Stephen Boyd
  1 sibling, 1 reply; 4+ messages in thread
From: Vladimir Zapolskiy @ 2016-09-21 10:17 UTC (permalink / raw)
  To: Arvind Yadav, mturquette, sboyd, slemieux.tyco
  Cc: linux-clk, linux-arm-kernel, linux-kernel

On 20.09.2016 13:54, Arvind Yadav wrote:
> From: Arvind Yadav <arvind.yadav.cs@gmail.com>
> 
> Free memory mapping, if lpc32xx_clk_init is not successful.
> 
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> ---
>  drivers/clk/nxp/clk-lpc32xx.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/clk/nxp/clk-lpc32xx.c b/drivers/clk/nxp/clk-lpc32xx.c
> index 90d740a..34c9735 100644
> --- a/drivers/clk/nxp/clk-lpc32xx.c
> +++ b/drivers/clk/nxp/clk-lpc32xx.c
> @@ -1513,6 +1513,7 @@ static void __init lpc32xx_clk_init(struct device_node *np)
>  	if (IS_ERR(clk_regmap)) {
>  		pr_err("failed to regmap system control block: %ld\n",
>  			PTR_ERR(clk_regmap));
> +		iounmap(base);
>  		return;
>  	}
>  
> 

Acked-by: Vladimir Zapolskiy <vz@mleia.com>

Thank you for the patch.

--
With best wishes,
Vladimir

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap
  2016-09-21 10:17 ` Vladimir Zapolskiy
@ 2016-09-21 17:41   ` Sylvain Lemieux (gmail)
  0 siblings, 0 replies; 4+ messages in thread
From: Sylvain Lemieux (gmail) @ 2016-09-21 17:41 UTC (permalink / raw)
  To: Vladimir Zapolskiy, Arvind Yadav
  Cc: mturquette, sboyd, linux-clk, linux-arm-kernel, linux-kernel

On Wed, 2016-09-21 at 13:17 +0300, Vladimir Zapolskiy wrote:
> On 20.09.2016 13:54, Arvind Yadav wrote:
> > From: Arvind Yadav <arvind.yadav.cs@gmail.com>
> > 
> > Free memory mapping, if lpc32xx_clk_init is not successful.
> > 
> > Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> > ---
> >  drivers/clk/nxp/clk-lpc32xx.c |    1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/drivers/clk/nxp/clk-lpc32xx.c b/drivers/clk/nxp/clk-lpc32xx.c
> > index 90d740a..34c9735 100644
> > --- a/drivers/clk/nxp/clk-lpc32xx.c
> > +++ b/drivers/clk/nxp/clk-lpc32xx.c
> > @@ -1513,6 +1513,7 @@ static void __init lpc32xx_clk_init(struct device_node *np)
> >  	if (IS_ERR(clk_regmap)) {
> >  		pr_err("failed to regmap system control block: %ld\n",
> >  			PTR_ERR(clk_regmap));
> > +		iounmap(base);
> >  		return;
> >  	}
> >  
> > 
> 
> Acked-by: Vladimir Zapolskiy <vz@mleia.com>
> 
> Thank you for the patch.
> 
Acked-by: Sylvain Lemieux <slemieux.tyco@gmail.com>

> --
> With best wishes,
> Vladimir
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap
  2016-09-20 10:54 [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap Arvind Yadav
  2016-09-21 10:17 ` Vladimir Zapolskiy
@ 2016-09-21 21:24 ` Stephen Boyd
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2016-09-21 21:24 UTC (permalink / raw)
  To: Arvind Yadav
  Cc: mturquette, vz, slemieux.tyco, linux-clk, linux-arm-kernel, linux-kernel

On 09/20, Arvind Yadav wrote:
> From: Arvind Yadav <arvind.yadav.cs@gmail.com>
> 
> Free memory mapping, if lpc32xx_clk_init is not successful.
> 
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-21 21:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-20 10:54 [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap Arvind Yadav
2016-09-21 10:17 ` Vladimir Zapolskiy
2016-09-21 17:41   ` Sylvain Lemieux (gmail)
2016-09-21 21:24 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).