[PATCH 07/10] Input: 88pm860x - use cleanup facility for device_node
Dmitry Torokhov
dmitry.torokhov at gmail.com
Sat Oct 19 21:19:09 PDT 2024
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 at gmail.com>
Applied, thank you.
--
Dmitry
More information about the Linux-mediatek
mailing list