__free() provides a scoped of_node_put() functionality to put the device_node automatically. Let's simplify the code a bit with use of __free(). Zhang Zekun (3): of: device: Do some clean up with use of __free() of: irq: Do some clean up with use of __free() of: property: Do some clean up with use of __free() drivers/of/device.c | 7 +++---- drivers/of/irq.c | 15 +++++---------- drivers/of/property.c | 28 ++++++++-------------------- 3 files changed, 16 insertions(+), 34 deletions(-) -- 2.17.1