Home
last modified time | relevance | path

Searched hist:f775f6d17035408be4a4b30c55d812fb7e6aab57 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/hwmon/
H A Dchipcap2.cdiff f775f6d17035408be4a4b30c55d812fb7e6aab57 Tue Aug 13 00:59:53 CEST 2024 Javier Carrasco <javier.carrasco.cruz@gmail.com> 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: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Message-ID: <20240813-chipcap2-probe-improvements-v2-1-e9a2932a8a00@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>