Skip to content

Commit

Permalink
mfd: twl4030-audio: Get audio MCLK via twl-core API instead of pdata
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Peter Ujfalusi authored and Samuel Ortiz committed Sep 18, 2012
1 parent 2275c54 commit c531241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/twl4030-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c531241

Please sign in to comment.