[alsa-devel] [PATCH v2] ASoC: ssm2305: Add amplifier driver

Lars-Peter Clausen lars at metafoo.de
Thu May 17 15:11:03 CEST 2018


On 05/17/2018 03:00 PM, Marco Felsch wrote:
[...]
> +	if (IS_ERR(priv->gpiod_shutdown)) {
> +		err = PTR_ERR(priv->gpiod_shutdown);
> +		if (err != -EPROBE_DEFER) {
> +			dev_err(dev, "Failed to get 'shutdown' gpio: %d\n",
> +				err);
> +			return err;

You also want to return the error in the EPROBE_DEFER case, so the driver
tries to probe again later.

> +		}
> +	}
> +
> +	return devm_snd_soc_register_component(dev, &ssm2305_component_driver,
> +					       NULL, 0);
> +}
[...]


More information about the Alsa-devel mailing list