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


Groups > linux.kernel > #1514038

[PATCH] mtd: nand: denali_dt: replace clk_disable() with clk_disable_unprepare()

From Masahiro Yamada <yamada.masahiro@socionext.com>
Newsgroups linux.kernel
Subject [PATCH] mtd: nand: denali_dt: replace clk_disable() with clk_disable_unprepare()
Date 2016-11-02 18:30 +0100
Message-ID <sz7wl-Mi-17@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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@socionext.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;
 }
-- 
1.9.1

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


Thread

[PATCH] mtd: nand: denali_dt: replace clk_disable() with clk_disable_unprepare() Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-11-02 18:30 +0100
  Re: [PATCH] mtd: nand: denali_dt: replace clk_disable() with  clk_disable_unprepare() Marek Vasut <marek.vasut@gmail.com> - 2016-11-05 08:40 +0100
  Re: [PATCH] mtd: nand: denali_dt: replace clk_disable() with  clk_disable_unprepare() Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-11-07 00:00 +0100

csiph-web