Re: [PATCH] regulator: qcom-labibb: use the platform device in dev_err_probe()
From: Konrad Dybcio
Date: Mon Nov 30 2026 - 03:25:13 EST
On 11/28/26 5:40 PM, Cong Nguyen wrote:
> When the short-circuit interrupt cannot be found, the probe loop calls
> dev_err_probe() with vreg->dev. vreg->dev is only set a few lines further
> down, so at this point it is still NULL.
>
> If of_irq_get_byname() returned -EPROBE_DEFER, dev_err_probe() passes the
> device to device_set_deferred_probe_reason(), which calls
> dev_driver_string() on it.
>
> Pass the platform device, which probe already has in dev.
>
> Fixes: 390af53e0411 ("regulator: qcom-labibb: Implement short-circuit and over-current IRQs")
> Signed-off-by: Cong Nguyen <congnt264@xxxxxxxxx>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad