Skip to content

Commit

Permalink
powerpc: use machine_subsys_initcall() for opal_hmi_handler_init()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Li Zhong authored and Michael Ellerman committed Sep 9, 2014
1 parent 85101af commit c1c8a92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/platforms/powernv/opal-hmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);

0 comments on commit c1c8a92

Please sign in to comment.