]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: drv260x - fix unbalanced regulator_disable() call
authorYauhen Kharuzhy <jekhor@gmail.com>
Tue, 17 Feb 2026 18:12:27 +0000 (10:12 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Feb 2026 07:05:17 +0000 (23:05 -0800)
commite7b53288d9ea899abc6d47a7f20065ab511a810c
tree3ddc0c2a8c88172464c4f324180a3855acdef9d6
parent710a1a8c591e93fa49946b68a4f1e25ae9687ecf
Input: drv260x - fix unbalanced regulator_disable() call

The driver acquires the 'vbat' regulator during probing but never enables
it. Consequently, in the suspend method, the driver disables the regulator
without enabling it first, causing an 'Unbalanced regulator_disable()'
error.

Enable the regulator in the probe() method and add the remove() method with
regulator disabling to fix this.

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Link: https://patch.msgid.link/20260215141435.727872-5-jekhor@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/drv260x.c