Input: elan_i2c - switch to using devm_device_add_groups()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 13 Jul 2019 08:13:16 +0000 (01:13 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 24 Jul 2019 09:58:52 +0000 (12:58 +0300)
commit9609b904c7eb411020d367d1f0904d0691819592
tree798e1ff8ca8f27a0ebfdef98ee52051b50d38ac6
parent3ccd63d369c80d7e73e19ca996d29b6e5d7225bb
Input: elan_i2c - switch to using devm_device_add_groups()

Instead of installing custom devm cleanup action to remove attribute
groups on failure, let's use the dedicated devm API.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c_core.c