17 May
2018
17 May
'18
3:11 p.m.
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);
+}
[...]