X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fpowerpc%2Fkernel%2Fbtext.c;h=93f21aaf7c8ef163a08483cc5f6d06c31d571c80;hb=7e23772f414cdbfb2a08aed237d6e926bb1cb728;hp=995fcef156fd81c598b679dcec7fa8f4f241874f;hpb=a489d159229fcc07bbb7566ac4fac745b79197ad;p=linux-2.6 diff --git a/arch/powerpc/kernel/btext.c b/arch/powerpc/kernel/btext.c index 995fcef156..93f21aaf7c 100644 --- a/arch/powerpc/kernel/btext.c +++ b/arch/powerpc/kernel/btext.c @@ -182,7 +182,7 @@ int btext_initialize(struct device_node *np) prop = get_property(np, "linux,bootx-linebytes", NULL); if (prop == NULL) prop = get_property(np, "linebytes", NULL); - if (prop) + if (prop && *prop != 0xffffffffu) pitch = *prop; if (pitch == 1) pitch = 0x1000;