We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f90f83 commit 6b2b06dCopy full SHA for 6b2b06d
drivers/memory/of_memory.c
@@ -212,10 +212,8 @@ static int of_lpddr3_do_get_timings(struct device_node *np,
212
{
213
int ret;
214
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);
+ /* The 'reg' param required since DT has changed, used as 'max-freq' */
+ ret = of_property_read_u32(np, "reg", &tim->max_freq);
219
ret |= of_property_read_u32(np, "min-freq", &tim->min_freq);
220
ret |= of_property_read_u32(np, "tRFC", &tim->tRFC);
221
ret |= of_property_read_u32(np, "tRRD", &tim->tRRD);
0 commit comments