diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-07 22:47:20 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-27 22:29:01 +0100 |
commit | 23c69bb822910ccb5c78fa3bf2b6bb96a47188d1 (patch) | |
tree | 8ad003ca6560354ed4080816926c70e7c0003186 /hw | |
parent | 88b5877734886e9aa9331447888ec54e75f8f6aa (diff) | |
download | qemu-23c69bb822910ccb5c78fa3bf2b6bb96a47188d1.zip qemu-23c69bb822910ccb5c78fa3bf2b6bb96a47188d1.tar.gz qemu-23c69bb822910ccb5c78fa3bf2b6bb96a47188d1.tar.bz2 |
hw/isa: Un-inline isa_bus_from_device()
No point in inlining isa_bus_from_device() which is only
used at device realization time.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230210163744.32182-9-philmd@linaro.org>
Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/isa/isa-bus.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/isa/isa-bus.c b/hw/isa/isa-bus.c index 845686c..2464357 100644 --- a/hw/isa/isa-bus.c +++ b/hw/isa/isa-bus.c @@ -164,6 +164,11 @@ bool isa_realize_and_unref(ISADevice *dev, ISABus *bus, Error **errp) return qdev_realize_and_unref(&dev->parent_obj, &bus->parent_obj, errp); } +ISABus *isa_bus_from_device(ISADevice *dev) +{ + return ISA_BUS(qdev_get_parent_bus(DEVICE(dev))); +} + ISADevice *isa_vga_init(ISABus *bus) { vga_interface_created = true; |