projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85101af
)
powerpc: use machine_subsys_initcall() for opal_hmi_handler_init()
author
Li Zhong
<zhong@linux.vnet.ibm.com>
Tue, 12 Aug 2014 09:17:04 +0000
(17:17 +0800)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Tue, 9 Sep 2014 09:02:46 +0000
(19:02 +1000)
As opal_message_init() uses machine_early_initcall(powernv, ), and
opal_hmi_handler_init() depends on that early initcall, so it also needs
use machine_* to check the machine_id.
Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
arch/powerpc/platforms/powernv/opal-hmi.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/powernv/opal-hmi.c
b/arch/powerpc/platforms/powernv/opal-hmi.c
index 97ac8dc33667f1319802fd08a8c1d9d56b8905b5..5e1ed1575aabe23c245edcdff06433cfb0a62327 100644
(file)
--- a/
arch/powerpc/platforms/powernv/opal-hmi.c
+++ b/
arch/powerpc/platforms/powernv/opal-hmi.c
@@
-28,6
+28,7
@@
#include <asm/opal.h>
#include <asm/cputable.h>
+#include <asm/machdep.h>
static int opal_hmi_handler_nb_init;
struct OpalHmiEvtNode {
@@
-185,4
+186,4
@@
static int __init opal_hmi_handler_init(void)
}
return 0;
}
-
subsys_initcall(
opal_hmi_handler_init);
+
machine_subsys_initcall(powernv,
opal_hmi_handler_init);