mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
ASoC: max98357a: Do not print error message on asoc/gpio errors
gpiolib/asoc system already prints enough info if there are any problems. Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
508e61953f
commit
4ab0c591c1
1 changed files with 3 additions and 12 deletions
|
@ -63,11 +63,9 @@ static int max98357a_codec_probe(struct snd_soc_codec *codec)
|
||||||
struct gpio_desc *sdmode;
|
struct gpio_desc *sdmode;
|
||||||
|
|
||||||
sdmode = devm_gpiod_get_optional(codec->dev, "sdmode", GPIOD_OUT_LOW);
|
sdmode = devm_gpiod_get_optional(codec->dev, "sdmode", GPIOD_OUT_LOW);
|
||||||
if (IS_ERR(sdmode)) {
|
if (IS_ERR(sdmode))
|
||||||
dev_err(codec->dev, "%s() unable to get sdmode GPIO: %ld\n",
|
|
||||||
__func__, PTR_ERR(sdmode));
|
|
||||||
return PTR_ERR(sdmode);
|
return PTR_ERR(sdmode);
|
||||||
}
|
|
||||||
snd_soc_codec_set_drvdata(codec, sdmode);
|
snd_soc_codec_set_drvdata(codec, sdmode);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -106,15 +104,8 @@ static struct snd_soc_dai_driver max98357a_dai_driver = {
|
||||||
|
|
||||||
static int max98357a_platform_probe(struct platform_device *pdev)
|
static int max98357a_platform_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
int ret;
|
return snd_soc_register_codec(&pdev->dev, &max98357a_codec_driver,
|
||||||
|
|
||||||
ret = snd_soc_register_codec(&pdev->dev, &max98357a_codec_driver,
|
|
||||||
&max98357a_dai_driver, 1);
|
&max98357a_dai_driver, 1);
|
||||||
if (ret)
|
|
||||||
dev_err(&pdev->dev, "%s() error registering codec driver: %d\n",
|
|
||||||
__func__, ret);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int max98357a_platform_remove(struct platform_device *pdev)
|
static int max98357a_platform_remove(struct platform_device *pdev)
|
||||||
|
|
Loading…
Reference in a new issue