[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4681438f-9c76-8f41-10fb-47a948b71a1a@gmail.com>
Date: Sat, 5 Nov 2016 08:26:36 +0100
From: Marek Vasut <marek.vasut@...il.com>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>,
linux-mtd@...ts.infradead.org
Cc: Boris Brezillon <boris.brezillon@...e-electrons.com>,
Stephen Boyd <stephen.boyd@...aro.org>,
Brian Norris <computersforpeace@...il.com>,
Sachin Kamat <sachin.kamat@...aro.org>,
Richard Weinberger <richard@....at>,
Jingoo Han <jg1.han@...sung.com>, linux-kernel@...r.kernel.org,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Enrico Jorns <ejo@...gutronix.de>,
David Woodhouse <dwmw2@...radead.org>,
Dinh Nguyen <dinguyen@...era.com>,
Graham Moore <grmoore@...nsource.altera.com>
Subject: Re: [PATCH] mtd: nand: denali_dt: replace clk_disable() with
clk_disable_unprepare()
On 11/02/2016 06:21 PM, Masahiro Yamada wrote:
> The denali_dt_probe() calls clk_disable_unprepare() in the bailout
> path, whereas denali_dt_remove calls clk_disable(), inconsistently.
> Replace the latter with clk_disable_unprepare() to make sure to
> unprepare the clock.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
Reviewed-by: Marek Vasut <marek.vasut@...il.com>
> ---
>
> drivers/mtd/nand/denali_dt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mtd/nand/denali_dt.c b/drivers/mtd/nand/denali_dt.c
> index 0cb1e8d..f821dc1 100644
> --- a/drivers/mtd/nand/denali_dt.c
> +++ b/drivers/mtd/nand/denali_dt.c
> @@ -110,7 +110,7 @@ static int denali_dt_remove(struct platform_device *ofdev)
> struct denali_dt *dt = platform_get_drvdata(ofdev);
>
> denali_remove(&dt->denali);
> - clk_disable(dt->clk);
> + clk_disable_unprepare(dt->clk);
>
> return 0;
> }
>
--
Best regards,
Marek Vasut
Powered by blists - more mailing lists