macintosh/macio-adb: replace of_node_put() with __free
authorsundar <prosunofficial@gmail.com>
Wed, 24 Apr 2024 15:07:18 +0000 (20:37 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 Apr 2024 11:53:13 +0000 (21:53 +1000)
commit84030aacf127d000180fa3cb4b589d8ab1b0d46b
tree6890e907f04cf5481719c3151acba9a0f8071856
parentdda32e37d397f5937cc24a6e98b71d3645f51afa
macintosh/macio-adb: replace of_node_put() with __free

use the new cleanup magic to replace of_node_put() with
__free(device_node) marking to auto release when they get out of scope.

Suggested-by: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: sundar <prosunofficial@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240424150718.5006-1-prosunofficial@gmail.com
drivers/macintosh/macio-adb.c