aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2012-09-10 06:46:23 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-22 11:14:57 -0400
commit8b59c1a8d91c1c2acba2c9588ee69e40d539a3fc (patch)
treeefa7293256fc6a5f301e361874de45ecfb207fcb /drivers
parent4cd7a2f1aedb2008004e110d31ce831895139fa0 (diff)
mfd: twl4030-audio: Get audio MCLK via twl-core API instead of pdata
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/twl4030-audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/twl4030-audio.c b/drivers/mfd/twl4030-audio.c
index ca2d6693c1f7..a48bf3af1240 100644
--- a/drivers/mfd/twl4030-audio.c
+++ b/drivers/mfd/twl4030-audio.c
@@ -175,7 +175,7 @@ static int __devinit twl4030_audio_probe(struct platform_device *pdev)
175 return -ENOMEM; 175 return -ENOMEM;
176 176
177 mutex_init(&audio->mutex); 177 mutex_init(&audio->mutex);
178 audio->audio_mclk = pdata->audio_mclk; 178 audio->audio_mclk = twl_get_hfclk_rate();
179 179
180 /* Configure APLL_INFREQ and disable APLL if enabled */ 180 /* Configure APLL_INFREQ and disable APLL if enabled */
181 switch (audio->audio_mclk) { 181 switch (audio->audio_mclk) {