[PATCH] thermal: ti-bandgap: Use dev_read_addr_index()
peng.fan at nxp.com
peng.fan at nxp.com
Tue May 26 08:49:09 CEST 2026
From: Peng Fan <peng.fan at nxp.com>
Use dev_read_addr_index() which supports both live device tree and flat DT
backends, avoiding direct dependency on devfdt_* helpers.
No functional changes.
Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
drivers/thermal/ti-bandgap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/ti-bandgap.c b/drivers/thermal/ti-bandgap.c
index dc869f108e4..643971e12cd 100644
--- a/drivers/thermal/ti-bandgap.c
+++ b/drivers/thermal/ti-bandgap.c
@@ -176,7 +176,7 @@ static int ti_bandgap_probe(struct udevice *dev)
{
struct ti_bandgap *bgp = dev_get_priv(dev);
- bgp->base = devfdt_get_addr_index(dev, 1);
+ bgp->base = dev_read_addr_index(dev, 1);
return 0;
}
--
2.51.0
More information about the U-Boot
mailing list