leds: 88pm860x: Use of_node_name_eq for node name comparisons
[platform/kernel/linux-rpi.git] / drivers / leds / leds-88pm860x.c
index 77a104d..036d4a5 100644 (file)
@@ -130,7 +130,7 @@ static int pm860x_led_dt_init(struct platform_device *pdev,
                return -ENODEV;
        }
        for_each_child_of_node(nproot, np) {
-               if (!of_node_cmp(np->name, data->name)) {
+               if (of_node_name_eq(np, data->name)) {
                        of_property_read_u32(np, "marvell,88pm860x-iset",
                                             &iset);
                        data->iset = PM8606_LED_CURRENT(iset);