diff --git a/bootdevice.c b/bootdevice.c
index 2e83ff05ebc8af00af9058b1e6a11a7001c7eaef..bb9c08e5357341bc96f87950d3df1c22d5a93ff8 100644
--- a/bootdevice.c
+++ b/bootdevice.c
@@ -28,6 +28,7 @@
 #include "qapi/visitor.h"
 #include "qemu/error-report.h"
 #include "hw/hw.h"
+#include "hw/qdev-core.h"
 
 typedef struct FWBootEntry FWBootEntry;