projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc18377
)
powerpc/4xx: Make sam440ep_setup_rtc() init
author
Yang Shi
<yang.shi@windriver.com>
Tue, 26 Apr 2016 16:49:38 +0000
(09:49 -0700)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Fri, 31 Mar 2017 12:09:40 +0000
(23:09 +1100)
sam440ep_setup_rtc() is just called by machine_device_initcall() so make
it __init.
Signed-off-by: Yang Shi <yang.shi@windriver.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/44x/sam440ep.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/44x/sam440ep.c
b/arch/powerpc/platforms/44x/sam440ep.c
index
688ffea
..
55fed5e
100644
(file)
--- a/
arch/powerpc/platforms/44x/sam440ep.c
+++ b/
arch/powerpc/platforms/44x/sam440ep.c
@@
-70,7
+70,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);
}