[PATCH] power: supply: cw2015: use dev_err_probe to allow deferred probe

Javier Martinez Canillas javier at dowhile0.org
Thu Jul 1 15:14:40 PDT 2021


On Fri, Jul 2, 2021 at 12:07 AM Peter Robinson <pbrobinson at gmail.com> wrote:
>
> Deal with deferred probe using dev_err_probe so the error is handled
> and avoid logging lots probe defer information like the following:
>
> [    9.125121] cw2015 4-0062: Failed to register power supply
> [    9.211131] cw2015 4-0062: Failed to register power supply
>
> Fixes: b4c7715c10c1 ("power: supply: add CellWise cw2015 fuel gauge driver")
> Signed-off-by: Peter Robinson <pbrobinson at gmail.com>
> ---

Right, I also found this error message annoying and agree that's too noisy.

Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>

Best regards,
Javier



More information about the linux-arm-kernel mailing list