Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1488008

Re: [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap

From Vladimir Zapolskiy <vz@mleia.com>
Newsgroups linux.kernel
Subject Re: [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap
Date 2016-09-21 12:20 +0200
Message-ID <sjMNc-7My-21@gated-at.bofh.it> (permalink)
References <sjqWl-1To-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap Arvind Yadav <arvind.yadav.cs@gmail.com> - 2016-09-20 13:00 +0200
  Re: [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap Vladimir Zapolskiy <vz@mleia.com> - 2016-09-21 12:20 +0200
    Re: [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by  of_iomap "Sylvain Lemieux (gmail)" <slemieux.tyco@gmail.com> - 2016-09-21 19:50 +0200
  Re: [PATCH] clk: nxp: clk-lpc32xx: Unmap region obtained by of_iomap Stephen Boyd <sboyd@codeaurora.org> - 2016-09-21 23:30 +0200

csiph-web