summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/85xx/socrates_fpga_pic.h
diff options
context:
space:
mode:
authorNick Child <nick.child@ibm.com>2021-12-16 17:00:33 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2021-12-23 22:33:18 +1100
commit407454cafd3f1878dae6bb839d8bac2db264300f (patch)
tree5a02799805522debb7d607c6b25866bfdb0a1ae7 /arch/powerpc/platforms/85xx/socrates_fpga_pic.h
parentf4a88b0ef5c5f7ce218aced7d811a31dd311a0b0 (diff)
downloadlinux-407454cafd3f1878dae6bb839d8bac2db264300f.tar.bz2
powerpc/85xx: Add __init attribute to eligible functions
Some functions defined in 'arch/powerpc/platforms/85xx' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`. Signed-off-by: Nick Child <nick.child@ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20211216220035.605465-19-nick.child@ibm.com
Diffstat (limited to 'arch/powerpc/platforms/85xx/socrates_fpga_pic.h')
-rw-r--r--arch/powerpc/platforms/85xx/socrates_fpga_pic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/socrates_fpga_pic.h b/arch/powerpc/platforms/85xx/socrates_fpga_pic.h
index c592b8bc94dd..c50b23794a06 100644
--- a/arch/powerpc/platforms/85xx/socrates_fpga_pic.h
+++ b/arch/powerpc/platforms/85xx/socrates_fpga_pic.h
@@ -6,6 +6,6 @@
#ifndef SOCRATES_FPGA_PIC_H
#define SOCRATES_FPGA_PIC_H
-void socrates_fpga_pic_init(struct device_node *pic);
+void __init socrates_fpga_pic_init(struct device_node *pic);
#endif