Patchwork [09/14] fw_cfg: add name to global fw_cfg device

login
register
mail settings
Submitter Anthony Liguori
Date Sept. 16, 2011, 4 p.m.
Message ID <1316188834-13675-10-git-send-email-aliguori@us.ibm.com>
Download mbox | patch
Permalink /patch/114994/
State New
Headers show

Comments

Anthony Liguori - Sept. 16, 2011, 4 p.m.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
---
 hw/fw_cfg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/fw_cfg.c b/hw/fw_cfg.c
index e2193d5..e37a427 100644
--- a/hw/fw_cfg.c
+++ b/hw/fw_cfg.c
@@ -484,7 +484,7 @@  FWCfgState *fw_cfg_init(uint32_t ctl_port, uint32_t data_port,
     SysBusDevice *d;
     FWCfgState *s;
 
-    dev = qdev_create(NULL, "fw_cfg", NULL);
+    dev = qdev_create(NULL, "fw_cfg", "::fw_cfg");
     qdev_prop_set_uint32(dev, "ctl_iobase", ctl_port);
     qdev_prop_set_uint32(dev, "data_iobase", data_port);
     qdev_init_nofail(dev);