From: Michael Ellerman Date: Thu, 2 Feb 2017 05:21:44 +0000 (+1100) Subject: powerpc/powernv: Fix section mismatch from opal_lpc_init() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0b1c764339ef35dccaa49d8466ec2bb08362c233;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git powerpc/powernv: Fix section mismatch from opal_lpc_init() opal_lpc_init() is called from an __init routine, and calls other __init routines, so should also be __init, init? Fixes: 023b13a50183 ("powerpc/powernv: Add support for direct mapped LPC on POWER9") Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/platforms/powernv/opal-lpc.c b/arch/powerpc/platforms/powernv/opal-lpc.c index 1a8cd54c1e74..399908bd9954 100644 --- a/arch/powerpc/platforms/powernv/opal-lpc.c +++ b/arch/powerpc/platforms/powernv/opal-lpc.c @@ -387,7 +387,7 @@ static int opal_lpc_init_debugfs(void) machine_device_initcall(powernv, opal_lpc_init_debugfs); #endif /* CONFIG_DEBUG_FS */ -void opal_lpc_init(void) +void __init opal_lpc_init(void) { struct device_node *np;