Explorar o código

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 <boris.brezillon@free-electrons.com>
Boris Brezillon %!s(int64=9) %!d(string=hai) anos
pai
achega
dd26a4584c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      drivers/mtd/nand/sunxi_nand.c

+ 2 - 0
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);
 	struct sunxi_nfc *nfc = platform_get_drvdata(pdev);
 
 
 	sunxi_nand_chips_cleanup(nfc);
 	sunxi_nand_chips_cleanup(nfc);
+	clk_disable_unprepare(nfc->mod_clk);
+	clk_disable_unprepare(nfc->ahb_clk);
 
 
 	return 0;
 	return 0;
 }
 }