diff options
author | Nick Child <nick.child@ibm.com> | 2021-12-16 17:00:31 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-12-23 22:33:17 +1100 |
commit | c0dc225ae7dd9f01d46ea779f7f169d49aa59b78 (patch) | |
tree | a08d8eba70b6fe94c562ba4515732d56aa5dccea /arch/powerpc/platforms/embedded6xx/holly.c | |
parent | 1ee969be25ed21a1192ca569ad827013eb7fac04 (diff) | |
download | linux-c0dc225ae7dd9f01d46ea779f7f169d49aa59b78.tar.gz linux-c0dc225ae7dd9f01d46ea779f7f169d49aa59b78.tar.bz2 linux-c0dc225ae7dd9f01d46ea779f7f169d49aa59b78.zip |
powerpc/embedded6xx: Add __init attribute to eligible functions
Some functions defined in 'arch/powerpc/platforms/embedded6xx' 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-17-nick.child@ibm.com
Diffstat (limited to 'arch/powerpc/platforms/embedded6xx/holly.c')
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/holly.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/holly.c b/arch/powerpc/platforms/embedded6xx/holly.c index 7a85b117f7a4..07e71ba3e846 100644 --- a/arch/powerpc/platforms/embedded6xx/holly.c +++ b/arch/powerpc/platforms/embedded6xx/holly.c @@ -50,7 +50,7 @@ static int holly_exclude_device(struct pci_controller *hose, u_char bus, return PCIBIOS_SUCCESSFUL; } -static void holly_remap_bridge(void) +static void __init holly_remap_bridge(void) { u32 lut_val, lut_addr; int i; |