]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
misc: ele: Use dev_read_addr
authorPeng Fan <peng.fan@nxp.com>
Tue, 9 Jun 2026 08:36:27 +0000 (16:36 +0800)
committerFabio Estevam <festevam@gmail.com>
Fri, 26 Jun 2026 20:07:06 +0000 (17:07 -0300)
Use dev_read_addr which supports livetree API, otherwise driver
will fail to get addr when OF_LIVE is enabled.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/misc/imx_ele/ele_mu.c

index cdb85b999db522f71a8693ae01543b578e514d5d..65a4779c041d0aab752898a2dcae69e17894418c 100644 (file)
@@ -209,7 +209,7 @@ static int imx8ulp_mu_probe(struct udevice *dev)
 
        debug("%s(dev=%p) (priv=%p)\n", __func__, dev, priv);
 
-       addr = devfdt_get_addr(dev);
+       addr = dev_read_addr(dev);
        if (addr == FDT_ADDR_T_NONE)
                return -EINVAL;