]> git.baikalelectronics.ru Git - kernel.git/commit
HID: i2c-hid: goodix: Use the devm variant of regulator_register_notifier()
authorDouglas Anderson <dianders@chromium.org>
Tue, 20 Jul 2021 16:07:49 +0000 (09:07 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 28 Jul 2021 09:48:49 +0000 (11:48 +0200)
commit9f2aff924617ec6870814da1b542568a1520dfe0
tree56fd96dd62b6eb4543b20a10ae62db0d1c1c6e9b
parentb7cb52f02720a9fce5bf33818bb315c7f1efc9e9
HID: i2c-hid: goodix: Use the devm variant of regulator_register_notifier()

In commit b7cb52f02720 ("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: b7cb52f02720 ("HID: i2c-hid: goodix: Tie the reset line to true state of the regulator")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid-of-goodix.c