diff --git a/drivers/memory/of_memory.c b/drivers/memory/of_memory.c index dbdf87bc0b78e..454a0e6d544ca 100644 --- a/drivers/memory/of_memory.c +++ b/drivers/memory/of_memory.c @@ -212,10 +212,8 @@ static int of_lpddr3_do_get_timings(struct device_node *np, { int ret; - ret = of_property_read_u32(np, "max-freq", &tim->max_freq); - if (ret) - /* Deprecated way of passing max-freq as 'reg' */ - ret = of_property_read_u32(np, "reg", &tim->max_freq); + /* The 'reg' param required since DT has changed, used as 'max-freq' */ + ret = of_property_read_u32(np, "reg", &tim->max_freq); ret |= of_property_read_u32(np, "min-freq", &tim->min_freq); ret |= of_property_read_u32(np, "tRFC", &tim->tRFC); ret |= of_property_read_u32(np, "tRRD", &tim->tRRD);