|
|
[PATCH 09/11] iommu: omap: add clk_prepare and clk_unprepare |
In preparation of OMAP moving to Common Clk Framework(CCF) add clk_prepare() and clk_unprepare() for the iommu clocks. Signed-off-by: Rajendra Nayak <rnayak@xxxxxx> Cc: Ohad Ben-Cohen <ohad@xxxxxxxxxx> --- drivers/iommu/omap-iommu.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c index e70ee2b..fa72372 100644 --- a/drivers/iommu/omap-iommu.c +++ b/drivers/iommu/omap-iommu.c @@ -923,6 +923,7 @@ static int __devinit omap_iommu_probe(struct platform_device *pdev) obj->clk = clk_get(&pdev->dev, pdata->clk_name); if (IS_ERR(obj->clk)) goto err_clk; + clk_prepare(obj->clk); obj->nr_tlb_entries = pdata->nr_tlb_entries; obj->name = pdata->name; @@ -974,6 +975,7 @@ err_irq: err_ioremap: release_mem_region(res->start, resource_size(res)); err_mem: + clk_unprepare(obj->clk); clk_put(obj->clk); err_clk: kfree(obj); -- 1.7.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
[Linux ARM (vger)] [Linux ARM MSM] [Linux Omap] [Linux Arm] [Linux Tegra] [Fedora ARM] [eCos] [Linux Fastboot] [Gcc Help] [Git] [DCCP] [IETF Announce] [Security] [PDAs] [Linux] [Linux MIPS] [Yosemite Campsites] [Photos]
![]() |
![]() |