Skip to content

Commit 339ba1a

Browse files
jan-kiszkaaescolar
authored andcommitted
drivers: ipm: ipm_mbox: Initialize after mbox drivers
This driver depends on its mboxes to be initialized, or the build will fail like this: ERROR: Device initialization priority validation failed, the sequence of \ initialization calls does not match the devicetree dependencies. ERROR: /ipm <ipm_mbox_init> is initialized before its dependency \ /mailbox0@31f80000 <omap_mailbox_0_init> (POST_KERNEL+0 < \ POST_KERNEL+2) Lift its priority to device level. Signed-off-by: Jan Kiszka <[email protected]>
1 parent c20e43c commit 339ba1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ipm/ipm_mbox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static const struct ipm_driver_api ipm_mbox_funcs = {
109109
&ipm_mbox_data_##n, \
110110
&ipm_mbox_config_##n, \
111111
POST_KERNEL, \
112-
0, \
112+
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
113113
&ipm_mbox_funcs);
114114

115115
DT_INST_FOREACH_STATUS_OKAY(IPM_MBOX_DEV_DEFINE)

0 commit comments

Comments
 (0)