Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932996AbcKBRYV (ORCPT ); Wed, 2 Nov 2016 13:24:21 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:43524 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932488AbcKBRYS (ORCPT ); Wed, 2 Nov 2016 13:24:18 -0400 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com uA2HLFuq012320 X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Cc: Enrico Jorns , Jingoo Han , Sachin Kamat , Boris Brezillon , Andy Shevchenko , Graham Moore , Stephen Boyd , Dinh Nguyen , Masahiro Yamada , linux-kernel@vger.kernel.org, Brian Norris , Richard Weinberger , David Woodhouse Subject: [PATCH] mtd: nand: denali_dt: replace clk_disable() with clk_disable_unprepare() Date: Thu, 3 Nov 2016 02:21:04 +0900 Message-Id: <1478107264-21139-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 797 Lines: 26 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 --- 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; } -- 1.9.1