]> git.baikalelectronics.ru Git - kernel.git/commit
Input: wm97xx: Simplify resource management
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 30 Jan 2022 08:06:36 +0000 (09:06 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 31 Jan 2022 13:17:24 +0000 (13:17 +0000)
commit3a6d33f8e1ea54e8c243f249a11237274d3ff819
tree3e8f1afcbb2e198ad43a3361bb44b062d3d0c156
parent194078cac45e6cca8d43614fb0deeeda0aaf0d91
Input: wm97xx: Simplify resource management

Since the commit in the Fixes tag below, 'wm->input_dev' is a managed
resource that doesn't need to be explicitly unregistered or freed (see
devm_input_allocate_device() documentation)

So, remove some unless line of code to slightly simplify it.

Fixes: b435bb6ab85a ("Input: wm97xx: split out touchscreen registering")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/87dce7e80ea9b191843fa22415ca3aef5f3cc2e6.1643529968.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/input/touchscreen/wm97xx-core.c