[PATCH for-5.8] ASoC: amd: doesn't print error log if the return value is EPROBE_DEFER

Mark Brown broonie at kernel.org
Thu May 21 17:43:56 CEST 2020


On Thu, May 21, 2020 at 10:44:34PM +0800, Hui Wang wrote:
> The machine driver module and codec driver module don't have
> dependency, it is possible that the machine driver is loaded ahead of
> the codec driver, then the register_card() will fail and return
> EPROBE_DEFER, in this case the driver should not print error log since
> this is not a real failure.

This isn't helpful to people who are trying to figure out why the driver
isn't loading - if we silently fail then the user will struggle to
determine what the problem that causes their driver to fail to bind is.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20200521/01cce589/attachment.sig>


More information about the Alsa-devel mailing list