Re: [PATCH 07/10] Input: 88pm860x - use cleanup facility for device_node
From: Dmitry Torokhov
Date: Sun Oct 20 2024 - 00:19:26 EST
On Thu, Oct 10, 2024 at 11:25:57PM +0200, Javier Carrasco wrote:
> Use the '__free(device_node)' macro to simplify the code and error
> handling. This makes the code more robust by ensuring that the device
> node is always freed.
>
> Drop the first assignment to 'pdev->dev.parent->of_node', as it was only
> a shortcut, and tie 'np' to its usage as a child node.
>
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@xxxxxxxxx>
Applied, thank you.
--
Dmitry