Commit 09bddc8e authored by Wolfram Sang's avatar Wolfram Sang Committed by Mark Brown

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: default avatarWolfram Sang <w.sang@pengutronix.de>
Tested-by: default avatarDong Aisheng <b29396@freescale.com>
Tested-by: default avatarShawn Guo <shawn.guo@freescale.com>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent e94a4062
...@@ -907,6 +907,7 @@ static int ldo_regulator_register(struct snd_soc_codec *codec, ...@@ -907,6 +907,7 @@ static int ldo_regulator_register(struct snd_soc_codec *codec,
struct regulator_init_data *init_data, struct regulator_init_data *init_data,
int voltage) int voltage)
{ {
dev_err(codec->dev, "this setup needs regulator support in the kernel\n");
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment