]> Git Repo - J-linux.git/blobdiff - drivers/usb/typec/anx7411.c
Merge tag 'usb-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[J-linux.git] / drivers / usb / typec / anx7411.c
index e205f409589a21ebd1503adf3571036a051aec6c..b8f3b75fd7eb910d09042fc63b1bba004f5eed0d 100644 (file)
@@ -1105,7 +1105,7 @@ static int anx7411_typec_switch_probe(struct anx7411_data *ctx,
        int ret;
        struct device_node *node;
 
-       node = of_find_node_by_name(dev->of_node, "orientation_switch");
+       node = of_get_child_by_name(dev->of_node, "orientation_switch");
        if (!node)
                return 0;
 
@@ -1115,7 +1115,7 @@ static int anx7411_typec_switch_probe(struct anx7411_data *ctx,
                return ret;
        }
 
-       node = of_find_node_by_name(dev->of_node, "mode_switch");
+       node = of_get_child_by_name(dev->of_node, "mode_switch");
        if (!node) {
                dev_err(dev, "no typec mux exist");
                ret = -ENODEV;
This page took 0.029546 seconds and 4 git commands to generate.