summaryrefslogtreecommitdiff
path: root/drivers/ata/mtk_ahci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/mtk_ahci.c')
-rw-r--r--drivers/ata/mtk_ahci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/mtk_ahci.c b/drivers/ata/mtk_ahci.c
index cd28e0cae3..46b7677783 100644
--- a/drivers/ata/mtk_ahci.c
+++ b/drivers/ata/mtk_ahci.c
@@ -68,7 +68,8 @@ static int mtk_ahci_parse_property(struct ahci_uc_priv *hpriv,
SYS_CFG_SATA_MSK, SYS_CFG_SATA_EN);
}
- ofnode_read_u32(dev->node, "ports-implemented", &hpriv->port_map);
+ ofnode_read_u32(dev_ofnode(dev), "ports-implemented",
+ &hpriv->port_map);
return 0;
}