Commit 1ab0b9a
usb: typec: use cleanup facility for 'altmodes_node'
Use the __free() macro for 'altmodes_node' to automatically release the
node when it goes out of scope, removing the need for explicit calls to
fwnode_handle_put().
Suggested-by: Heikki Krogerus <[email protected]>
Signed-off-by: Javier Carrasco <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/20241021-typec-class-fwnode_handle_put-v2-2-3281225d3d27@gmail.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 9581acb commit 1ab0b9a
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2293 | 2293 | | |
2294 | 2294 | | |
2295 | 2295 | | |
2296 | | - | |
| 2296 | + | |
2297 | 2297 | | |
2298 | 2298 | | |
2299 | 2299 | | |
2300 | 2300 | | |
2301 | 2301 | | |
2302 | 2302 | | |
2303 | 2303 | | |
2304 | | - | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
2305 | 2307 | | |
2306 | 2308 | | |
2307 | 2309 | | |
| |||
2341 | 2343 | | |
2342 | 2344 | | |
2343 | 2345 | | |
2344 | | - | |
2345 | 2346 | | |
2346 | 2347 | | |
2347 | 2348 | | |
| |||
0 commit comments