]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/sparc/kernel/of_device_32.c
sparc: Use of_node_name_eq for node name comparisons
[linux.git] / arch / sparc / kernel / of_device_32.c
index ab133e2753ab799f87282cca8e021358f142f2f3..dc5b1b0ec65950c4746c5e330417ccfe6e02d0ad 100644 (file)
@@ -232,10 +232,10 @@ static int __init use_1to1_mapping(struct device_node *pp)
         * But, we should still pass the translation work up
         * to the SBUS itself.
         */
-       if (!strcmp(pp->name, "dma") ||
-           !strcmp(pp->name, "espdma") ||
-           !strcmp(pp->name, "ledma") ||
-           !strcmp(pp->name, "lebuffer"))
+       if (of_node_name_eq(pp, "dma") ||
+           of_node_name_eq(pp, "espdma") ||
+           of_node_name_eq(pp, "ledma") ||
+           of_node_name_eq(pp, "lebuffer"))
                return 0;
 
        return 1;