From: Boris Brezillon Date: Fri, 4 Mar 2016 17:26:40 +0000 (+0100) Subject: mtd: nand: sunxi: disable clks on device removal X-Git-Tag: v5.15~13505^2~4^2~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd26a4584c37687b8bbe89233bcc23279ca361b1;p=platform%2Fkernel%2Flinux-starfive.git mtd: nand: sunxi: disable clks on device removal mod and ahb clocks are not disabled when the NAND controller device is removed. Signed-off-by: Boris Brezillon --- diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c index f8b3a72..cad20fb 100644 --- a/drivers/mtd/nand/sunxi_nand.c +++ b/drivers/mtd/nand/sunxi_nand.c @@ -1845,6 +1845,8 @@ static int sunxi_nfc_remove(struct platform_device *pdev) struct sunxi_nfc *nfc = platform_get_drvdata(pdev); sunxi_nand_chips_cleanup(nfc); + clk_disable_unprepare(nfc->mod_clk); + clk_disable_unprepare(nfc->ahb_clk); return 0; }