summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2014-07-07 15:03:24 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2014-07-07 15:03:24 +0200
commitc87ddbb1325a448d56a920513206592f03bca117 (patch)
treede30e686344ebf7466070a6582e49312e26d8317 /sound
parentc5e12a9cbb668760ca12cc2acd6b79d79bc10ea2 (diff)
regulator: allow GPIO 0 to be used for an enable signal
GPIO number 0 *is* legal and must be accepted. Set .ena_gpio to -ENODEV on regulators having no GPIO in preparation of a code change to accept GPIO 0 in the config.
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/sgtl5000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index b39160a555ae..07cce8e17e03 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -838,7 +838,7 @@ static int ldo_regulator_register(struct snd_soc_codec *codec,
{
struct ldo_regulator *ldo;
struct sgtl5000_priv *sgtl5000 = snd_soc_codec_get_drvdata(codec);
- struct regulator_config config = { };
+ struct regulator_config config = { .ena_gpio = -ENODEV };
ldo = kzalloc(sizeof(struct ldo_regulator), GFP_KERNEL);