lkml.org 
[lkml]   [2014]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] ARM: zImage: Allow DTB to override broken ATAG_MEM
From
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


\
 
 \ /
  Last update: 2014-05-07 08:01    [W:0.062 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site