Skip to content
Commit 25ddd7cf authored by Douglas Anderson's avatar Douglas Anderson Committed by Jiri Kosina
Browse files

HID: i2c-hid: goodix: Use the devm variant of regulator_register_notifier()

In commit 18eeef46 ("HID: i2c-hid: goodix: Tie the reset line to
true state of the regulator") I added a call to
regulator_register_notifier() but no call to unregister. That's a
bug. Let's use the devm variant to handle the unregistering.

Fixes: 18eeef46

 ("HID: i2c-hid: goodix: Tie the reset line to true state of the regulator")
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 18eeef46
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment