Skip to content

Commit fe2bca3

Browse files
gmarullcarlescufi
authored andcommitted
drivers: fpga: move to POST_KERNEL
Devices should be initialized either in pre-Kernel or post-Kernel stages. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 222409f commit fe2bca3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/fpga/fpga_eos_s3.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,5 @@ static const struct fpga_driver_api eos_s3_api = {
148148
.get_info = eos_s3_fpga_get_info
149149
};
150150

151-
DEVICE_DT_DEFINE(DT_NODELABEL(fpga0), &eos_s3_fpga_init, NULL, &fpga_data, NULL, APPLICATION,
151+
DEVICE_DT_DEFINE(DT_NODELABEL(fpga0), &eos_s3_fpga_init, NULL, &fpga_data, NULL, POST_KERNEL,
152152
CONFIG_FPGA_INIT_PRIORITY, &eos_s3_api);

drivers/fpga/fpga_zynqmp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,4 @@ static const struct fpga_driver_api zynqmp_api = {
323323
};
324324

325325
DEVICE_DT_INST_DEFINE(0, &zynqmp_fpga_init, NULL, &fpga_data, NULL,
326-
APPLICATION, CONFIG_FPGA_INIT_PRIORITY, &zynqmp_api);
326+
POST_KERNEL, CONFIG_FPGA_INIT_PRIORITY, &zynqmp_api);

0 commit comments

Comments
 (0)