Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd26a458 authored by Boris Brezillon's avatar Boris Brezillon
Browse files

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: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent 68ffbf7f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
}