From: Wolfram Sang Date: Mon, 18 Jul 2011 15:53:04 +0000 (+0200) Subject: ASoC: sgtl5000: guide user when regulator support is needed X-Git-Tag: firefly_0821_release~3680^2~2691^2~990 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=09bddc8eb26eeb976efcfde9569b5ad1d9b77574;p=firefly-linux-kernel-4.4.55.git ASoC: sgtl5000: guide user when regulator support is needed Print a hint when the user has a setup where CONFIG_REGULATOR is really needed to make the driver work. Signed-off-by: Wolfram Sang Tested-by: Dong Aisheng Tested-by: Shawn Guo Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 17af336892a7..76258f2a2ffb 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -907,6 +907,7 @@ static int ldo_regulator_register(struct snd_soc_codec *codec, struct regulator_init_data *init_data, int voltage) { + dev_err(codec->dev, "this setup needs regulator support in the kernel\n"); return -EINVAL; }