ASoC: Tegra: I2S: s/clk_get_sys/clk_get/
authorStephen Warren <swarren@nvidia.com>
Fri, 1 Jul 2011 19:56:14 +0000 (13:56 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Jul 2011 15:49:24 +0000 (08:49 -0700)
The clock needed by the I2S driver is associated with the I2S device name
in the standard fashion. Hence, use clk_get(dev) instead of clk_get_sys(clk_name).

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/tegra/tegra_i2s.c

index 6b817e20548ca07fa94938caf8202bc37b9b0386..2e5685512db0a12837d8859c85f72c5fb5a18d2d 100644 (file)
@@ -348,7 +348,6 @@ struct snd_soc_dai_driver tegra_i2s_dai[] = {
 static __devinit int tegra_i2s_platform_probe(struct platform_device *pdev)
 {
        struct tegra_i2s * i2s;
-       char clk_name[12]; /* tegra-i2s.0 */
        struct resource *mem, *memregion, *dmareq;
        int ret;
 
@@ -383,8 +382,7 @@ static __devinit int tegra_i2s_platform_probe(struct platform_device *pdev)
        }
        dev_set_drvdata(&pdev->dev, i2s);
 
-       snprintf(clk_name, sizeof(clk_name), DRV_NAME ".%d", pdev->id);
-       i2s->clk_i2s = clk_get_sys(clk_name, NULL);
+       i2s->clk_i2s = clk_get(&pdev->dev, NULL);
        if (IS_ERR(i2s->clk_i2s)) {
                dev_err(&pdev->dev, "Can't retrieve i2s clock\n");
                ret = PTR_ERR(i2s->clk_i2s);