Skip to content

Commit 6b2b06d

Browse files
committed
Revert "memory: of: parse max-freq property"
This reverts commit 4e890b2.
1 parent 2f90f83 commit 6b2b06d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/memory/of_memory.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,8 @@ static int of_lpddr3_do_get_timings(struct device_node *np,
212212
{
213213
int ret;
214214

215-
ret = of_property_read_u32(np, "max-freq", &tim->max_freq);
216-
if (ret)
217-
/* Deprecated way of passing max-freq as 'reg' */
218-
ret = of_property_read_u32(np, "reg", &tim->max_freq);
215+
/* The 'reg' param required since DT has changed, used as 'max-freq' */
216+
ret = of_property_read_u32(np, "reg", &tim->max_freq);
219217
ret |= of_property_read_u32(np, "min-freq", &tim->min_freq);
220218
ret |= of_property_read_u32(np, "tRFC", &tim->tRFC);
221219
ret |= of_property_read_u32(np, "tRRD", &tim->tRRD);

0 commit comments

Comments
 (0)