Re: [PATCH v2] driver:core: no need to invert the return value of the call_driver_probe()
From: Greg KH
Date: Mon Jul 08 2024 - 09:58:01 EST
On Mon, Jul 08, 2024 at 06:40:28AM -0700, Lizhe wrote:
> If drv->probe() or drv->bus->probe() returns EPROBE_DEFER,
> then there is no need to invert the sign. Similarly,
> if it returns -EPROBE_DEFER, no sign inversion is needed either
>
> In the probe function (either bus->probe() or drv->probe()),
> there is no return value of EPROBE_DEFER.
> v2:
> Delete the judgment with the return value of EPROBEDEFER
> from the _driver_probe.device()
> v1:
> Add the judgment with the return value of EPROBEDEFER
> from the _driver_probe.device()
Versions go below the --- line as the documentation says.
> Signed-off-by: Lizhe <sensor1010@xxxxxxx>
Full name?
thanks,
greg k-h