Skip to content

Commit

Permalink
ASoC: davinci: don't use clock names
Browse files Browse the repository at this point in the history
clock name strings are no longer passed on platform_data.  Instead,
we rely entirely on struct device and clkdev to find the right clock.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Kevin Hilman authored and Mark Brown committed Jul 16, 2009
1 parent 9db9ed9 commit 3e46a44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sound/soc/davinci/davinci-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = clk_get(&pdev->dev, NULL);
if (IS_ERR(dev->clk)) {
ret = -ENODEV;
goto err_free_mem;
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/davinci/davinci-mcasp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = clk_get(&pdev->dev, NULL);
if (IS_ERR(dev->clk)) {
ret = -ENODEV;
goto err_release_region;
Expand Down

0 comments on commit 3e46a44

Please sign in to comment.