… > Add put_device() in all code paths where dsi_pdev is no longer needed, > including error paths and the normal removal path.
How do you think about to apply the attribute “__free(put_device)”? https://elixir.bootlin.com/linux/v6.18-rc5/source/include/linux/device.h#L1183 By the way: I propose to avoid duplicate of_node_put() calls in this function implementation. Would it be helpful to append parentheses to the function name in the summary phrase? Regards, Markus
