diff options
author | 2024-10-21 22:45:30 +0200 | |
---|---|---|
committer | 2024-10-29 04:28:51 +0100 | |
commit | 1ab0b9ae587373f9f800b6fda01b8faf02b3530b (patch) | |
tree | e209c929adf593b54b8e9023046d47aa514a9835 /scripts/gdb/linux/modules.py | |
parent | usb: typec: fix unreleased fwnode_handle in typec_port_register_altmodes() (diff) | |
download | wireguard-linux-1ab0b9ae587373f9f800b6fda01b8faf02b3530b.tar.xz wireguard-linux-1ab0b9ae587373f9f800b6fda01b8faf02b3530b.zip |
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 <heikki.krogerus@linux.intel.com>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20241021-typec-class-fwnode_handle_put-v2-2-3281225d3d27@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions