Input: raspberrypi-ts - use cleanup facility for device_node
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Sun, 20 Oct 2024 04:18:30 +0000 (21:18 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 20 Oct 2024 04:21:43 +0000 (21:21 -0700)
commitcd63c67be6094825ff06b2649c6d9b33cb38a1b9
tree3ae04c24e3f7a4a49832ec4e757e51410c3e8cd4
parent6243376d6a969fb4fa654a685599ec09b872bd20
Input: raspberrypi-ts - use cleanup facility for device_node

Use the '__free(device_node)' macro to automatically free the device
node, removing the need for explicit calls to 'of_node_put()' to
decrement its refcount.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20241010-input_automate_of_node_put-v1-9-ebc62138fbf8@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/raspberrypi-ts.c