ASoC: sgtl5000: guide user when regulator support is needed
authorWolfram Sang <w.sang@pengutronix.de>
Mon, 18 Jul 2011 15:53:04 +0000 (17:53 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 19 Jul 2011 15:19:30 +0000 (16:19 +0100)
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 <w.sang@pengutronix.de>
Tested-by: Dong Aisheng <b29396@freescale.com>
Tested-by: Shawn Guo <shawn.guo@freescale.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/sgtl5000.c

index 17af336892a7ab5624310a9ba8d9a3d2ce98dd2c..76258f2a2ffbe50da655eb563d58858ba9f4d3c9 100644 (file)
@@ -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;
 }