[POWERPC] ps3: always make sure we're running on a PS3
[linux-drm-fsl-dcu.git] / arch / powerpc / platforms / ps3 / mm.c
index 49c0d010d491d761940bcbcb339f5d3c757cfb2c..2014d2b444496f95526b4e659f3715134361ff67 100644 (file)
@@ -25,7 +25,6 @@
 #include <asm/firmware.h>
 #include <asm/lmb.h>
 #include <asm/udbg.h>
-#include <asm/ps3.h>
 #include <asm/lv1call.h>
 
 #include "platform.h"
@@ -295,7 +294,7 @@ static int __init ps3_mm_add_memory(void)
        unsigned long nr_pages;
 
        if (!firmware_has_feature(FW_FEATURE_PS3_LV1))
-               return 0;
+               return -ENODEV;
 
        BUG_ON(!mem_init_done);