]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: anx7411: Use of_get_child_by_name() instead of of_find_node_by_name()
authorLiang He <windhl@126.com>
Thu, 15 Sep 2022 09:22:09 +0000 (17:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2022 13:52:29 +0000 (15:52 +0200)
commitba7160eafa8751275a9cdc0a76a53c2c96e9d062
tree567d821c9a965363e78199778da670c24ab1dc47
parent21b67d03773162d9a2fa2a99dbffb4f168f1b160
usb: typec: anx7411: Use of_get_child_by_name() instead of of_find_node_by_name()

In anx7411_typec_switch_probe(), we should call of_get_child_by_name()
instead of of_find_node_by_name() as of_find_xxx API will decrease the
refcount of the 'from' argument.

Fixes: c8cb17b4d474 ("usb: typec: anx7411: Add Analogix PD ANX7411 support")
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220915092209.4009273-1-windhl@126.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/anx7411.c