]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soc: ti: pm33xx: do device_node auto cleanup
authorKousik Sanagavarapu <five231003@gmail.com>
Sun, 25 Aug 2024 08:48:45 +0000 (14:18 +0530)
committerNishanth Menon <nm@ti.com>
Wed, 28 Aug 2024 17:18:02 +0000 (12:18 -0500)
commit68123510b7c1c610387dd306f92ff539c3c546b5
treeff6cababf3fa53266f4d331a54414d03d5565576
parentb0289dbf1c952c04ba48b05cc6345381999ef055
soc: ti: pm33xx: do device_node auto cleanup

Use scope based cleanup instead of manual of_node_put() calls, hence
simplifying the handling of error paths.

Suggested-by: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: Kousik Sanagavarapu <five231003@gmail.com>
Link: https://lore.kernel.org/r/20240825085714.10736-5-five231003@gmail.com
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/soc/ti/pm33xx.c