提交 fb32061f 编写于 作者: E Ezequiel Garcia 提交者: David Woodhouse

mtd: nand: pxa3xx: Use clk_prepare_enable and clk_disable_unprepare

This patch converts the module to use clk_prepare_enable and
clk_disable_unprepare variants as required by common clock framework.
Signed-off-by: NEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 9ca7944d
无相关合并请求
......@@ -1072,7 +1072,7 @@ static int alloc_nand_resource(struct platform_device *pdev)
dev_err(&pdev->dev, "failed to get nand clock\n");
return PTR_ERR(info->clk);
}
clk_enable(info->clk);
clk_prepare_enable(info->clk);
/*
* This is a dirty hack to make this driver work from devicetree
......@@ -1142,7 +1142,7 @@ static int alloc_nand_resource(struct platform_device *pdev)
} else
kfree(info->data_buff);
fail_disable_clk:
clk_disable(info->clk);
clk_disable_unprepare(info->clk);
return ret;
}
......@@ -1168,7 +1168,7 @@ static int pxa3xx_nand_remove(struct platform_device *pdev)
} else
kfree(info->data_buff);
clk_disable(info->clk);
clk_disable_unprepare(info->clk);
for (cs = 0; cs < pdata->num_cs; cs++)
nand_release(info->host[cs]->mtd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部