From: Benjamin Herrenschmidt Date: Tue, 5 Jul 2016 05:03:54 +0000 (+1000) Subject: powerpc/rtas: Don't test for machine type in rtas_initialize() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=484cc1ed3c6b90459f02977f6f5ab7810db18705;p=linux-beck.git powerpc/rtas: Don't test for machine type in rtas_initialize() 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 Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c index 8da209fdf480..286354f00ff6 100644 --- a/arch/powerpc/kernel/rtas.c +++ b/arch/powerpc/kernel/rtas.c @@ -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"); }