From: Peter Ujfalusi Date: Mon, 10 Sep 2012 10:46:23 +0000 (+0300) Subject: mfd: twl4030-audio: Get audio MCLK via twl-core API instead of pdata X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8b59c1a8d91c1c2acba2c9588ee69e40d539a3fc;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Samuel Ortiz Signed-off-by: Mark Brown --- 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) 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) {