Re: [PATCH v2] hwmon: chipcap2: drop cc2_disable() in the probe and return dev_err_probe()
From: Guenter Roeck
Date: Tue Aug 13 2024 - 11:53:18 EST
On Tue, Aug 13, 2024 at 12:59:53AM +0200, Javier Carrasco wrote:
> There is no need to actively disable a regulator that has not been
> enabled by the driver, which makes the call to cc2_disable() in the
> probe function meaningless, because the probe function never enables
> the device's dedicated regulator.
>
> Once the call to cc2_disable() is dropped, the error paths can directly
> return dev_err_probe() in all cases.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@xxxxxxxxx>
Applied.
Thanks,
Guenter