powerpc/prom_init: Use IS_ENABLED()
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 18 Dec 2024 11:31:59 +0000 (22:31 +1100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Sat, 11 Jan 2025 05:09:35 +0000 (10:39 +0530)
commit200f22fa48a8c670a1ba66d18d810c51055e6ae9
treefd29ca33af58cc6f95fa7021bdd7b89c8b1ade22
parent8f70caad82e9c088ed93b4fea48d941ab6441886
powerpc/prom_init: Use IS_ENABLED()

Use IS_ENABLED() for the device tree checks, so that more code is
checked by the compiler without having to build all the different
configurations.

Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20241218113159.422821-1-mpe@ellerman.id.au
arch/powerpc/kernel/prom_init.c