hw/ppc/pnv_xscom: Use qdev_is_realized()
DeviceState fields should be accessed through qdev helpers rather than directly. Use qdev_is_realized() instead of reading DeviceState::realized directly. Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Message-ID: <20260721-qdev-v3-8-d2e226fa002e@rsg.ci.i.u-tokyo.ac.jp>
Akihiko Odaki committed
Jul 21, 2026 at 17:16 UTC
f80ce4a6541b406a896410af12690b2b3148badc
1 file changed
+1
-1
hw/ppc/pnv_xscom.c
+1
-1
@@ -253,7 +253,7 @@ static int xscom_dt_child(Object *child, void *opaque)
253
/*
254
* Only "realized" devices should be configured in the DT
255
*/
256
- if (xc->dt_xscom && DEVICE(child)->realized) {
256
+ if (xc->dt_xscom && qdev_is_realized(DEVICE(child))) {
257
_FDT((xc->dt_xscom(xd, args->fdt, args->xscom_offset)));
258
}
259
}