]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mmc: xenon_sdhci: Use livetree API
authorPeng Fan <peng.fan@nxp.com>
Mon, 25 May 2026 03:58:02 +0000 (11:58 +0800)
committerPeng Fan <peng.fan@nxp.com>
Tue, 9 Jun 2026 15:55:56 +0000 (23:55 +0800)
Use livetree API which supports both live device tree and flat DT backends,
avoiding direct dependency on devfdt_* helpers.

No functional changes.

Reviewed-by: Stefan Roese <stefan.roese@mailbox.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/xenon_sdhci.c

index 0e4902fab77cad5501a9b74b8e48683e7b3b2f01..6aa73792f96737ed5fe30ea3acac80dfebb04e40 100644 (file)
@@ -537,10 +537,9 @@ static int xenon_sdhci_of_to_plat(struct udevice *dev)
        host->ioaddr = dev_read_addr_ptr(dev);
 
        if (device_is_compatible(dev, "marvell,armada-3700-sdhci"))
-               priv->pad_ctrl_reg = devfdt_get_addr_index_ptr(dev, 1);
+               priv->pad_ctrl_reg = dev_read_addr_index_ptr(dev, 1);
 
-       name = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "marvell,pad-type",
-                          NULL);
+       name = ofnode_get_property(dev_ofnode(dev), "marvell,pad-type", NULL);
        if (name) {
                if (0 == strncmp(name, "sd", 2)) {
                        priv->pad_type = SOC_PAD_SD;