powerpc/chrp: Add __init attribute to eligible functions

The function `Enable_SRAM` defined in 'arch/powerpc/platforms/chrp' is
deserving of an `__init` macro attribute. This function is only called by
other initialization functions and therefore should inherit the attribute.

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-9-nick.child@ibm.com
This commit is contained in:
Nick Child 2021-12-16 17:00:23 -05:00 committed by Michael Ellerman
parent 7c1ab16b2d
commit d3aa3c5edf
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ static struct platform_device *mv643xx_eth_pd_devs[] __initdata = {
static void __iomem *mv643xx_reg_base;
static int Enable_SRAM(void)
static int __init Enable_SRAM(void)
{
u32 ALong;