powerpc/rtas: Don't test for machine type in rtas_initialize()
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Jul 2016 05:03:54 +0000 (15:03 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Jul 2016 08:15:38 +0000 (18:15 +1000)
The test is unnecessary, the FW_FEATURE_LPAR is sufficient as there
exist no other LPAR type that has RTAS.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/rtas.c

index 8da209fdf480e713256738de11c1c4d98c41e91b..286354f00ff69cae8ae05738f8b4294d2d46d66f 100644 (file)
@@ -1174,7 +1174,7 @@ void __init rtas_initialize(void)
         * the stop-self token if any
         */
 #ifdef CONFIG_PPC64
-       if (machine_is(pseries) && firmware_has_feature(FW_FEATURE_LPAR)) {
+       if (firmware_has_feature(FW_FEATURE_LPAR)) {
                rtas_region = min(ppc64_rma_size, RTAS_INSTANTIATE_MAX);
                ibm_suspend_me_token = rtas_token("ibm,suspend-me");
        }