[RFC PATCH v2 085/137] isa: Remove *_orphan() creator variants

Alexander Graf <[email protected]>
Newsgroups org.nongnu.qemu-arm,org.nongnu.qemu-devel,org.nongnu.qemu-riscv
Message-ID <[email protected]>
All boards create their ISA devices with an explicit QOM parent
now.  Drop isa_new_orphan(), isa_try_new_orphan() and
isa_create_simple_orphan().

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
AI-used-for: code (refactoring)
Signed-off-by: Alexander Graf <[email protected]>
---
 hw/isa/isa-bus.c     | 19 -------------------
 include/hw/isa/isa.h |  3 ---
 2 files changed, 22 deletions(-)

diff --git a/hw/isa/isa-bus.c b/hw/isa/isa-bus.c
index 7a6a595ce7..22452e5048 100644
--- a/hw/isa/isa-bus.c
+++ b/hw/isa/isa-bus.c
@@ -172,25 +172,6 @@ ISADevice *isa_create_simple(Object *parent, const char *id,
     return dev;
 }
 
-ISADevice *isa_new_orphan(const char *name)
-{
-    return ISA_DEVICE(qdev_new_orphan(name));
-}
-
-ISADevice *isa_try_new_orphan(const char *name)
-{
-    return ISA_DEVICE(qdev_try_new_orphan(name));
-}
-
-ISADevice *isa_create_simple_orphan(ISABus *bus, const char *name)
-{
-    ISADevice *dev;
-
-    dev = isa_new_orphan(name);
-    isa_realize_and_unref(dev, bus, &error_fatal);
-    return dev;
-}
-
 bool isa_realize_and_unref(ISADevice *dev, ISABus *bus, Error **errp)
 {
     return qdev_realize_and_unref(&dev->parent_obj, &bus->parent_obj, errp);
diff --git a/include/hw/isa/isa.h b/include/hw/isa/isa.h
index 79bfe16361..9bbaa3c258 100644
--- a/include/hw/isa/isa.h
+++ b/include/hw/isa/isa.h
@@ -86,10 +86,7 @@ ISADevice *isa_new(Object *parent, const char *id, const char *type);
 ISADevice *isa_try_new(Object *parent, const char *id, const char *type);
 ISADevice *isa_create_simple(Object *parent, const char *id,
                              ISABus *bus, const char *type);
-ISADevice *isa_new_orphan(const char *name);
-ISADevice *isa_try_new_orphan(const char *name);
 bool isa_realize_and_unref(ISADevice *dev, ISABus *bus, Error **errp);
-ISADevice *isa_create_simple_orphan(ISABus *bus, const char *name);
 
 ISADevice *isa_vga_init(Object *parent, ISABus *bus);
 
-- 
2.47.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.