Commit f775f6d1 authored by Javier Carrasco's avatar Javier Carrasco Committed by Guenter Roeck
Browse files

hwmon: (chipcap2) Drop cc2_disable() in the probe and return dev_err_probe()



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: default avatarJavier Carrasco <javier.carrasco.cruz@gmail.com>
Message-ID: <20240813-chipcap2-probe-improvements-v2-1-e9a2932a8a00@gmail.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 05aa8cbe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment