Re: [PATCH v2 4/5] input: drv260x: Fix unbalanced regulator_disable() call
From: Dmitry Torokhov
Date: Wed Feb 18 2026 - 21:43:45 EST
Hi Yauhen,
On Sun, Feb 15, 2026 at 04:14:34PM +0200, Yauhen Kharuzhy wrote:
> +static void drv260x_remove(struct i2c_client *client)
> +{
> + struct drv260x_data *haptics = i2c_get_clientdata(client);
> +
> + regulator_disable(haptics->regulator);
> }
This will result in power being shut off the first thing during
unbinding, which is too early.
I switched this to devm_add_action_or_reset() and applied.
Thanks.
--
Dmitry