Message ID | 1436684202-16461-3-git-send-email-anatol.pomozov@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/sound/soc/codecs/max98357a.c b/sound/soc/codecs/max98357a.c index 0d87d35..d669b0c 100644 --- a/sound/soc/codecs/max98357a.c +++ b/sound/soc/codecs/max98357a.c @@ -64,11 +64,9 @@ static int max98357a_codec_probe(struct snd_soc_codec *codec) struct gpio_desc *sdmode; sdmode = devm_gpiod_get(codec->dev, "sdmode", GPIOD_OUT_LOW); - if (IS_ERR(sdmode) && (PTR_ERR(sdmode) != -ENOENT)) { - dev_err(codec->dev, "%s() unable to get sdmode GPIO: %ld\n", - __func__, PTR_ERR(sdmode)); + if (IS_ERR(sdmode) && (PTR_ERR(sdmode) != -ENOENT)) return PTR_ERR(sdmode); - } + snd_soc_codec_set_drvdata(codec, sdmode); return 0;
gpiolib system already prints enough info if there are any problems with the gpio. Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com> --- sound/soc/codecs/max98357a.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)