int nremove(struct platform_device *pdev) { struct nand_info *nand = platform_get_drvdata(pdev); nand_exit(nand); clk_disable(nand->clk); clk_put(nand->clk); nand_release(&nand->mtd); iounmap(nand->virt); kfree(nand); return 0; }
static void __exit exit_nand_libmodule(void) { nand_exit(); }