Messages in this thread | | | Date | Tue, 6 May 2014 22:32:32 -0700 | Subject | Re: [PATCH] ARM: zImage: Allow DTB to override broken ATAG_MEM | From | Bjorn Andersson <> |
| |
On Tue, May 6, 2014 at 10:16 PM, Bjorn Andersson <bjorn.andersson@sonymobile.com> wrote: [...] > +static int fdt_overrides_atag_mem(void *fdt) > +{ > + const char *memory; > + int len = 0; > + > + memory = getprop(fdt, "/memory", "reg", &len); > + if (memory) { > + while (len--) { > + if (*memory != '\0')
Sorry, this is of course supposed to be: if (*memory++ != '\0')
> + return 1; > + } > + } > + > + return 0; > +}
Regards, Bjorn
| |