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

ASoC: fsl_utils: Drop usage of __clk_get_name()

Avoid build errors when CONFIG_COMMON_CLK is not set/enabled.

ERROR: modpost: "__clk_get_name" [sound/soc/fsl/snd-soc-fsl-utils.ko] undefined!

Fixes: 7bad8125549c ("ASoC: fsl_utils: Add function to handle PLL clock source")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1657507190-14546-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Shengjiu Wang and committed by
Mark Brown
eaa27e7f 19bb587f

+1 -1
+1 -1
sound/soc/fsl/fsl_utils.c
··· 147 147 if (reparent) { 148 148 ret = clk_set_parent(p, npll); 149 149 if (ret < 0) 150 - dev_warn(dev, "failed to set parent %s: %d\n", __clk_get_name(npll), ret); 150 + dev_warn(dev, "failed to set parent:%d\n", ret); 151 151 } 152 152 } 153 153 EXPORT_SYMBOL(fsl_asoc_reparent_pll_clocks);