Re: [PATCH] regulator: anatop: Drop error message for -EPROBE_DEFER

From: Mark Brown
Date: Tue Mar 03 2020 - 07:30:14 EST


On Tue, Mar 03, 2020 at 11:14:21AM +0800, Anson Huang wrote:
> devm_regulator_register() could return -EPROBE_DEFER when trying to
> get init data and NOT all resources are available at that time, for
> this case, error message should NOT be present, the driver will call
> probe again later, so drop error message for -EPROBE_DEFER.

No, this is not good - it means that if there is some problem the user
will not get any information about why the driver is not instantiating
and how to fix it. At most lower the message to dev_dbg().

Attachment: signature.asc
Description: PGP signature