Skip to content

Commit

Permalink
Revert "memory: of: parse max-freq property"
Browse files Browse the repository at this point in the history
This reverts commit 4e890b2.
  • Loading branch information
digetx committed Mar 26, 2022
1 parent 2f90f83 commit 6b2b06d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/memory/of_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6b2b06d

Please sign in to comment.