]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/clk/ti/clkctrl.c
clk: Use of_node_name_eq for node name comparisons
[linux.git] / drivers / clk / ti / clkctrl.c
index 469f560ae1cf7c779a75d4d18dc30e0883e1d340..40630eb950fcb5b66ba48baf332e33f9b9ee3345 100644 (file)
@@ -448,7 +448,7 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node)
        char *c;
 
        if (!(ti_clk_get_features()->flags & TI_CLK_CLKCTRL_COMPAT) &&
-           !strcmp(node->name, "clk"))
+           of_node_name_eq(node, "clk"))
                ti_clk_features.flags |= TI_CLK_CLKCTRL_COMPAT;
 
        addrp = of_get_address(node, 0, NULL, NULL);