Peter Plessas <plessas@mur.at> wrote:
Hi,
Edit arch/powerpc/kernel/prom_init.c, then, in prom_check_displays()
isn't it:
prom_num_displays()
in:
/usr/src/linux/arch/ppc/syslib/prom_init.c?
No, arch/ppc is deprecated for most modern, non-embedded PPC machines
(and for some/most of embedded ones too).
add a break; statement at the very end of the for() loop.
So this snippet:
for (i = 0; i < prom_num_displays; ++i)
prom_display_paths[i] = PTRUNRELOC(prom_display_paths[i]);
would become:
for (i = 0; i < prom_num_displays; ++i)
prom_display_paths[i] =
PTRUNRELOC(prom_display_paths[i])break;
right?
Absolutely not :) This looks like it is the old code from arch/ppc,
right ?
If you don't have arch/powerpc, then replace prom_num_displays by 1 in
the above.
This is on a debian 2.6.14 kernel, sources from kernel.org.
Never built this version of the kernel, I waited a bit for the dust to
settle around the ppc -> powerpc move :)
JB.