Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[linux-block.git] / drivers / ata / ahci_mtk.c
index f6a75341256f7769b5aedd0557619942d154aec6..0bf83a297091297f2dfb87bf2c97a400395679c1 100644 (file)
@@ -106,7 +106,7 @@ static int mtk_ahci_parse_property(struct ahci_host_priv *hpriv,
        struct device_node *np = dev->of_node;
 
        /* enable SATA function if needed */
-       if (of_find_property(np, "mediatek,phy-mode", NULL)) {
+       if (of_property_present(np, "mediatek,phy-mode")) {
                plat->mode = syscon_regmap_lookup_by_phandle(
                                        np, "mediatek,phy-mode");
                if (IS_ERR(plat->mode)) {