Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754290AbcKEHgb (ORCPT ); Sat, 5 Nov 2016 03:36:31 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36114 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753797AbcKEHfw (ORCPT ); Sat, 5 Nov 2016 03:35:52 -0400 Subject: Re: [PATCH] mtd: nand: denali_dt: replace clk_disable() with clk_disable_unprepare() To: Masahiro Yamada , linux-mtd@lists.infradead.org References: <1478107264-21139-1-git-send-email-yamada.masahiro@socionext.com> Cc: Boris Brezillon , Stephen Boyd , Brian Norris , Sachin Kamat , Richard Weinberger , Jingoo Han , linux-kernel@vger.kernel.org, Andy Shevchenko , Enrico Jorns , David Woodhouse , Dinh Nguyen , Graham Moore From: Marek Vasut Message-ID: <4681438f-9c76-8f41-10fb-47a948b71a1a@gmail.com> Date: Sat, 5 Nov 2016 08:26:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <1478107264-21139-1-git-send-email-yamada.masahiro@socionext.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 968 Lines: 34 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 Reviewed-by: Marek Vasut > --- > > 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