Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[linux-block.git] / drivers / ata / sata_dwc_460ex.c
index 24334a8a3f0b4c27efc19c24dde6e09ade3fdf87..fabdd1e380f94cef1f468ef9dd0d98e0b0510f8f 100644 (file)
@@ -810,7 +810,7 @@ static int sata_dwc_dma_get_channel(struct sata_dwc_device_port *hsdevp)
        struct device *dev = hsdev->dev;
 
 #ifdef CONFIG_SATA_DWC_OLD_DMA
-       if (!of_find_property(dev->of_node, "dmas", NULL))
+       if (!of_property_present(dev->of_node, "dmas"))
                return sata_dwc_dma_get_channel_old(hsdevp);
 #endif
 
@@ -1180,7 +1180,7 @@ static int sata_dwc_probe(struct platform_device *ofdev)
        }
 
 #ifdef CONFIG_SATA_DWC_OLD_DMA
-       if (!of_find_property(np, "dmas", NULL)) {
+       if (!of_property_present(np, "dmas")) {
                err = sata_dwc_dma_init_old(ofdev, hsdev);
                if (err)
                        return err;