[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20161106235545.779797fe@bbrezillon>
Date: Sun, 6 Nov 2016 23:55:45 +0100
From: Boris Brezillon <boris.brezillon@...e-electrons.com>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: linux-mtd@...ts.infradead.org, Enrico Jorns <ejo@...gutronix.de>,
Jingoo Han <jg1.han@...sung.com>,
Sachin Kamat <sachin.kamat@...aro.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Graham Moore <grmoore@...nsource.altera.com>,
Stephen Boyd <stephen.boyd@...aro.org>,
Dinh Nguyen <dinguyen@...era.com>,
linux-kernel@...r.kernel.org,
Brian Norris <computersforpeace@...il.com>,
Richard Weinberger <richard@....at>,
David Woodhouse <dwmw2@...radead.org>
Subject: Re: [PATCH] mtd: nand: denali_dt: replace clk_disable() with
clk_disable_unprepare()
On Thu, 3 Nov 2016 02:21:04 +0900
Masahiro Yamada <yamada.masahiro@...ionext.com> 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>
Applied.
Thanks,
Boris
> ---
>
> 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;
> }
Powered by blists - more mailing lists