| .. | .. |
|---|
| 193 | 193 | * the DMA synchronization handling |
|---|
| 194 | 194 | */ |
|---|
| 195 | 195 | while (parent) { |
|---|
| 196 | | - if (!strcmp(parent->type, "pci")) |
|---|
| 196 | + if (of_node_is_type(parent, "pci")) |
|---|
| 197 | 197 | break; |
|---|
| 198 | 198 | parent = parent->parent; |
|---|
| 199 | 199 | } |
|---|
| .. | .. |
|---|
| 725 | 725 | unsigned long imap, iclr; |
|---|
| 726 | 726 | u32 tmp; |
|---|
| 727 | 727 | |
|---|
| 728 | | - if (!strcmp(dp->name, "eeprom")) { |
|---|
| 728 | + if (of_node_name_eq(dp, "eeprom")) { |
|---|
| 729 | 729 | res = ¢ral_op->resource[5]; |
|---|
| 730 | | - } else if (!strcmp(dp->name, "zs")) { |
|---|
| 730 | + } else if (of_node_name_eq(dp, "zs")) { |
|---|
| 731 | 731 | res = ¢ral_op->resource[4]; |
|---|
| 732 | | - } else if (!strcmp(dp->name, "clock-board")) { |
|---|
| 732 | + } else if (of_node_name_eq(dp, "clock-board")) { |
|---|
| 733 | 733 | res = ¢ral_op->resource[3]; |
|---|
| 734 | 734 | } else { |
|---|
| 735 | 735 | return ino; |
|---|
| .. | .. |
|---|
| 824 | 824 | } |
|---|
| 825 | 825 | #endif |
|---|
| 826 | 826 | #ifdef CONFIG_SBUS |
|---|
| 827 | | - if (!strcmp(dp->name, "sbus") || |
|---|
| 828 | | - !strcmp(dp->name, "sbi")) { |
|---|
| 827 | + if (of_node_name_eq(dp, "sbus") || |
|---|
| 828 | + of_node_name_eq(dp, "sbi")) { |
|---|
| 829 | 829 | sbus_irq_trans_init(dp); |
|---|
| 830 | 830 | return; |
|---|
| 831 | 831 | } |
|---|
| 832 | 832 | #endif |
|---|
| 833 | | - if (!strcmp(dp->name, "fhc") && |
|---|
| 834 | | - !strcmp(dp->parent->name, "central")) { |
|---|
| 833 | + if (of_node_name_eq(dp, "fhc") && |
|---|
| 834 | + of_node_name_eq(dp->parent, "central")) { |
|---|
| 835 | 835 | central_irq_trans_init(dp); |
|---|
| 836 | 836 | return; |
|---|
| 837 | 837 | } |
|---|
| 838 | | - if (!strcmp(dp->name, "virtual-devices") || |
|---|
| 839 | | - !strcmp(dp->name, "niu")) { |
|---|
| 838 | + if (of_node_name_eq(dp, "virtual-devices") || |
|---|
| 839 | + of_node_name_eq(dp, "niu")) { |
|---|
| 840 | 840 | sun4v_vdev_irq_trans_init(dp); |
|---|
| 841 | 841 | return; |
|---|
| 842 | 842 | } |
|---|