Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Peter Ujfalusi and committed by
Samuel Ortiz
c531241d 2275c544

+1 -1
+1 -1
drivers/mfd/twl4030-audio.c
··· 175 175 return -ENOMEM; 176 176 177 177 mutex_init(&audio->mutex); 178 - audio->audio_mclk = pdata->audio_mclk; 178 + audio->audio_mclk = twl_get_hfclk_rate(); 179 179 180 180 /* Configure APLL_INFREQ and disable APLL if enabled */ 181 181 switch (audio->audio_mclk) {