summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/8xx/pic.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2019-09-12 13:22:55 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2019-11-19 19:38:35 +1100
commit132f92fdc42782fd297e076ef74bedeb8ce774e4 (patch)
tree1f5ca2b7510af45e825ea728e4271d1f60b28e85 /arch/powerpc/platforms/8xx/pic.c
parentb020aa9d1e875c1c91b1390acdf42320e7060d84 (diff)
downloadlwn-132f92fdc42782fd297e076ef74bedeb8ce774e4.tar.gz
lwn-132f92fdc42782fd297e076ef74bedeb8ce774e4.zip
powerpc/8xx: add __init to cpm1 init functions
Functions cpm1_clk_setup(), cpm1_set_pin(), cpm_pic_init() and mpc8xx_pic_init() are only called from __init functions, so mark them __init as well. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/c27168ef054f3a52edcf0ff91652700d53b3e32d.1568294563.git.christophe.leroy@c-s.fr
Diffstat (limited to 'arch/powerpc/platforms/8xx/pic.c')
-rw-r--r--arch/powerpc/platforms/8xx/pic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/8xx/pic.c b/arch/powerpc/platforms/8xx/pic.c
index e9617d35fd1f..f2ba837249d6 100644
--- a/arch/powerpc/platforms/8xx/pic.c
+++ b/arch/powerpc/platforms/8xx/pic.c
@@ -125,7 +125,7 @@ static const struct irq_domain_ops mpc8xx_pic_host_ops = {
.xlate = mpc8xx_pic_host_xlate,
};
-int mpc8xx_pic_init(void)
+int __init mpc8xx_pic_init(void)
{
struct resource res;
struct device_node *np;