summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2017-02-02 16:21:44 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2017-02-02 16:35:10 +1100
commit0b1c764339ef35dccaa49d8466ec2bb08362c233 (patch)
tree99dd74993a4851d5fa050d84308db31b0328b473 /arch/powerpc/platforms
parent0d0a4bc2a6f7de19cb0256a55891955961d70b1c (diff)
downloadop-kernel-dev-0b1c764339ef35dccaa49d8466ec2bb08362c233.zip
op-kernel-dev-0b1c764339ef35dccaa49d8466ec2bb08362c233.tar.gz
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 <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/powernv/opal-lpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-lpc.c b/arch/powerpc/platforms/powernv/opal-lpc.c
index 1a8cd54..399908b 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;
OpenPOWER on IntegriCloud