]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc/powernv: Fix section mismatch from opal_lpc_init()
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 Feb 2017 05:21:44 +0000 (16:21 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 Feb 2017 05:35:10 +0000 (16:35 +1100)
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 <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-lpc.c

index 1a8cd54c1e74528d523733008147b1c8745a6418..399908bd9954867bbe3ca8e5d2430c68464c7266 100644 (file)
@@ -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;