mfd: twl4030-audio: Get audio MCLK via twl-core API instead of pdata
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 10 Sep 2012 10:46:23 +0000 (13:46 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 22 Sep 2012 15:14:57 +0000 (11:14 -0400)
twl-core has API to get the boot time configured HFCLK rate which has the
same rate as the audio MCLK.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/mfd/twl4030-audio.c

index ca2d669..a48bf3a 100644 (file)
@@ -175,7 +175,7 @@ static int __devinit twl4030_audio_probe(struct platform_device *pdev)
                return -ENOMEM;
 
        mutex_init(&audio->mutex);
-       audio->audio_mclk = pdata->audio_mclk;
+       audio->audio_mclk = twl_get_hfclk_rate();
 
        /* Configure APLL_INFREQ and disable APLL if enabled */
        switch (audio->audio_mclk) {