From: Li Zhong Date: Tue, 12 Aug 2014 09:17:04 +0000 (+0800) Subject: powerpc: use machine_subsys_initcall() for opal_hmi_handler_init() X-Git-Tag: v5.15~17257^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1c8a92f7017519f343fa87a32e544c217d9d287;p=platform%2Fkernel%2Flinux-starfive.git powerpc: use machine_subsys_initcall() for opal_hmi_handler_init() 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 --- diff --git a/arch/powerpc/platforms/powernv/opal-hmi.c b/arch/powerpc/platforms/powernv/opal-hmi.c index 97ac8dc..5e1ed15 100644 --- a/arch/powerpc/platforms/powernv/opal-hmi.c +++ b/arch/powerpc/platforms/powernv/opal-hmi.c @@ -28,6 +28,7 @@ #include #include +#include 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);