[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1461689378-10978-1-git-send-email-yang.shi@windriver.com>
Date: Tue, 26 Apr 2016 09:49:38 -0700
From: Yang Shi <yang.shi@...driver.com>
To: <alistair@...ple.id.au>, <mporter@...nel.crashing.org>,
<benh@...nel.crashing.org>, <paulus@...ba.org>,
<mpe@...erman.id.au>, <linuxppc-dev@...ts.ozlabs.org>,
<yang.shi@...driver.com>
CC: <linux-kernel@...r.kernel.org>
Subject: [PATCH] powerpc/4xx: make sam440ep_setup_rtc init
sam440ep_setup_rtc is just called by machine_device_initcall, and it calls
i2c_register_board_info which is init too, so the lack of __init may cause
mismatch warning when linking kernel.
Signed-off-by: Yang Shi <yang.shi@...driver.com>
---
arch/powerpc/platforms/44x/sam440ep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/44x/sam440ep.c b/arch/powerpc/platforms/44x/sam440ep.c
index 3ee4a03..fbecfc1 100644
--- a/arch/powerpc/platforms/44x/sam440ep.c
+++ b/arch/powerpc/platforms/44x/sam440ep.c
@@ -72,7 +72,7 @@ static struct i2c_board_info sam440ep_rtc_info = {
.irq = -1,
};
-static int sam440ep_setup_rtc(void)
+static int __init sam440ep_setup_rtc(void)
{
return i2c_register_board_info(0, &sam440ep_rtc_info, 1);
}
--
2.0.2
Powered by blists - more mailing lists