diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-03-04 18:26:40 +0100 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-04-19 22:05:42 +0200 |
commit | dd26a4584c37687b8bbe89233bcc23279ca361b1 (patch) | |
tree | 514c32fdf3843927ed3fe508b8cee01a72f9206f /drivers/mtd/nand/sunxi_nand.c | |
parent | 68ffbf7f9fb11323238cb31c956b4f381e6b05cc (diff) | |
download | linux-dd26a4584c37687b8bbe89233bcc23279ca361b1.tar.bz2 |
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>
Diffstat (limited to 'drivers/mtd/nand/sunxi_nand.c')
-rw-r--r-- | drivers/mtd/nand/sunxi_nand.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c index f8b3a7281af0..cad20fb058a1 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; } |