[PATCH] Fix pSeries identification in prom_init.c

segher at gate.crashing.org segher at gate.crashing.org
Mon May 15 19:51:26 EST 2006


> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> ---
>
> Paul, if you are happy with that, please send upsteam ASAP.
>
> Index: linux-work/arch/powerpc/kernel/prom_init.c
> =================================================================== ---
> linux-work.orig/arch/powerpc/kernel/prom_init.c	2006-05-02
> 10:51:33.000000000 +1000 +++
> linux-work/arch/powerpc/kernel/prom_init.c	2006-05-15 15:37:03.000000000
> +1000 @@ -1636,7 +1636,7 @@
>  			   compat, sizeof(compat)-1);
>  	if (len <= 0)
>  		return PLATFORM_GENERIC;
> -	if (strncmp(compat, RELOC("chrp"), 4))
> +	if (strcmp(compat, RELOC("chrp")))
>  		return PLATFORM_GENERIC;
>
>  	/* Default to pSeries. We need to know if we are running LPAR */

Confirmed it works correctly on affected systems.  Thanks Ben.

Signed-off-by: Segher Boessenkool <segher at kernel.crashing.org>






More information about the Linuxppc-dev mailing list