]> www.infradead.org Git - users/willy/xarray.git/commit
soc: ti: pruss: do device_node auto cleanup
authorKousik Sanagavarapu <five231003@gmail.com>
Sun, 25 Aug 2024 08:48:43 +0000 (14:18 +0530)
committerNishanth Menon <nm@ti.com>
Wed, 28 Aug 2024 17:18:02 +0000 (12:18 -0500)
commitdf70c0b4828bb85f1370453288a0a63d7618decf
treeccb22362f4fb875371e18984178f495c7687570f
parent952ceb03787dde88fc713c7453824e25bf12cb3a
soc: ti: pruss: do device_node auto cleanup

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

While at it, use dev_err_probe() instead of dev_err() in all the code
paths touched.

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