Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 484cc1ed authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Michael Ellerman
Browse files

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: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent acd3578e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1174,7 +1174,7 @@ void __init rtas_initialize(void)
	 * the stop-self token if any
	 * the stop-self token if any
	 */
	 */
#ifdef CONFIG_PPC64
#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);
		rtas_region = min(ppc64_rma_size, RTAS_INSTANTIATE_MAX);
		ibm_suspend_me_token = rtas_token("ibm,suspend-me");
		ibm_suspend_me_token = rtas_token("ibm,suspend-me");
	}
	}