@@ -528,7 +528,7 @@ static int davinci_i2s_probe(struct platform_device *pdev)
goto err_release_region;
}
- dev->clk = clk_get(&pdev->dev, pdata->clk_name);
+ dev->clk = pdata->clk;
if (IS_ERR(dev->clk)) {
ret = -ENODEV;
goto err_free_mem;
@@ -584,7 +584,6 @@ static int davinci_i2s_remove(struct platform_device *pdev)
snd_soc_unregister_dai(&davinci_i2s_dai);
clk_disable(dev->clk);
- clk_put(dev->clk);
dev->clk = NULL;
kfree(dev);
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
@@ -764,7 +764,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
}
pdata = pdev->dev.platform_data;
- dev->clk = clk_get(&pdev->dev, pdata->clk_name);
+ dev->clk = pdata->clk;
if (IS_ERR(dev->clk)) {
ret = -ENODEV;
goto err_release_region;
@@ -834,7 +834,6 @@ static int davinci_mcasp_remove(struct platform_device *pdev)
snd_soc_unregister_dai(&davinci_mcasp_dai[pdev->id]);
dev = davinci_mcasp_dai[pdev->id].private_data;
clk_disable(dev->clk);
- clk_put(dev->clk);
dev->clk = NULL;
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);