aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Child <[email protected]>2021-12-16 17:00:23 -0500
committerMichael Ellerman <[email protected]>2021-12-23 22:33:13 +1100
commitd3aa3c5edf0cb7ac0b0b5b0d144bba60b0ee77da (patch)
tree3a672f568e1a0f1cd2ce8120cf3c06d625388c09
parent7c1ab16b2d035c6bc3b6b6980ab7e72f547edc45 (diff)
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--arch/powerpc/platforms/chrp/pegasos_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/chrp/pegasos_eth.c b/arch/powerpc/platforms/chrp/pegasos_eth.c
index 485cf5ef73d4..5c4f1a9ca154 100644
--- a/arch/powerpc/platforms/chrp/pegasos_eth.c
+++ b/arch/powerpc/platforms/chrp/pegasos_eth.c
@@ -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;