Re: [PATCH 3/3] hwmon: (lm75) Add regulator support

From: Mark Brown
Date: Fri Sep 18 2020 - 06:05:33 EST


On Thu, Sep 17, 2020 at 10:33:37PM -0700, Guenter Roeck wrote:
> On 9/17/20 3:18 AM, Alban Bedel wrote:

> > + err = regulator_enable(data->vs);

> How about device removal ? Don't you have to call regulator_disable()
> there as well ? If so, it might be best to use devm_add_action_or_reset()
> to register a disable function.

Yes, disables should be balanced (and any attempt to unregister the
regulator with references still held should result in a warning).

Attachment: signature.asc
Description: PGP signature