ddr: altera: Use dev_read_addr_index_ptr()
PATCH 1/1 ddr: altera: Use dev_read_addr_index_ptr()
From: Peng Fan <[email protected]>
Replace devfdt_get_addr_index_ptr() with dev_read_addr_index_ptr() which supports both live device tree and flat DT backends, avoiding direct dependency on devfdt_* helpers.
No functional changes.
Signed-off-by Peng Fan <[email protected]>
--- drivers/ddr/altera/sdram_gen5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ddr/altera/sdram_gen5.c +1 -1
@@ -566,7 +566,7 @@ static int altera_gen5_sdram_of_to_plat(struct udevice *dev) {struct altera_gen5_sdram_plat *plat =dev_get_plat (dev); - plat->sdr =devfdt_get_addr_index_ptr (dev,0 ); + plat->sdr =dev_read_addr_index_ptr (dev,0 );if (!plat->sdr)return -EINVAL ;
Signature · 1 line
2.51.0
Quoted 9 lines · On 5/25/26 6:10 AM, [email protected] wrote:
From: Peng Fan <[email protected]>
Replace
devfdt_get_addr_index_ptr()withdev_read_addr_index_ptr()which supports both live device tree and flat DT backends, avoiding direct dependency on devfdt_* helpers.No functional changes.
Signed-off-by Peng Fan <[email protected]>
Reviewed-by Marek Vasut <[email protected]>