Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}