X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=arch%2Fpowerpc%2Fplatforms%2Fps3%2Fmm.c;h=49c0d010d491d761940bcbcb339f5d3c757cfb2c;hb=e22ba7e38144c1cccac5024cfd6ec88bb64d3e1f;hp=a57f7036dd1f54ee018b7ae031888c7bf3ed5295;hpb=eb30c72026500f9efa9bb23ab2393d6a9e36c5e1;p=safe%2Fjmp%2Flinux-2.6 diff --git a/arch/powerpc/platforms/ps3/mm.c b/arch/powerpc/platforms/ps3/mm.c index a57f703..49c0d01 100644 --- a/arch/powerpc/platforms/ps3/mm.c +++ b/arch/powerpc/platforms/ps3/mm.c @@ -22,6 +22,7 @@ #include #include +#include #include #include #include @@ -293,6 +294,9 @@ static int __init ps3_mm_add_memory(void) unsigned long start_pfn; unsigned long nr_pages; + if (!firmware_has_feature(FW_FEATURE_PS3_LV1)) + return 0; + BUG_ON(!mem_init_done); start_addr = USE_LPAR_ADDR ? map.r1.base : map.rm.size;