On 5/29/20 3:45 PM, Markus Armbruster wrote:
> Sysbus devices almost always plug into the main system bus.
> qdev_create() even has a convenience feature to make that easy: a null
> bus argument gets replaced by the main system bus.  qdev_realize() and
> qdev_realize_and_unref() do the same.
> 
> We can do better.  Provide convenience wrappers around qdev_realize()
> and qdev_realize_and_unref() that don't take a @bus argument.  They
> always pass the main system bus.
> 
> Signed-off-by: Markus Armbruster <arm...@redhat.com>
> ---
>  include/hw/sysbus.h |  4 +++-
>  hw/core/sysbus.c    | 14 ++++++++++++--
>  2 files changed, 15 insertions(+), 3 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <phi...@redhat.com>


Reply via email to