]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/ide/pmac.c
i2c: cpm: remove casting dma_alloc
[linux.git] / drivers / ide / pmac.c
index 203ed4adc04ae6680de39910985b05996c227528..92f840365718d46ac9d66e8a8a1e2e58e189b2c2 100644 (file)
@@ -1046,7 +1046,7 @@ static int pmac_ide_setup_device(pmac_ide_hwif_t *pmif, struct ide_hw *hw)
                d.port_ops = &pmac_ide_ata4_port_ops;
                d.udma_mask = ATA_UDMA5;
        } else if (of_device_is_compatible(np, "keylargo-ata")) {
-               if (strcmp(np->name, "ata-4") == 0) {
+               if (of_node_name_eq(np, "ata-4")) {
                        pmif->kind = controller_kl_ata4;
                        d.port_ops = &pmac_ide_ata4_port_ops;
                        d.udma_mask = ATA_UDMA4;