Re: [PATCH 43/55] sysbus: Convert to sysbus_realize() etc. with Coccinelle

2020-05-19 Thread Alistair Francis
On Tue, May 19, 2020 at 8:25 AM Markus Armbruster wrote: > > Convert from qdev_realize(), qdev_realize_and_unref() with null @bus > argument to sysbus_realize(), sysbus_realize_and_unref(). > > Coccinelle script: > > @@ > expression dev, errp; > @@ > -qdev_realize(DEVICE(dev),

[PATCH 43/55] sysbus: Convert to sysbus_realize() etc. with Coccinelle

2020-05-19 Thread Markus Armbruster
Convert from qdev_realize(), qdev_realize_and_unref() with null @bus argument to sysbus_realize(), sysbus_realize_and_unref(). Coccinelle script: @@ expression dev, errp; @@ -qdev_realize(DEVICE(dev), NULL, errp); +sysbus_realize(SYS_BUS_DEVICE(dev), errp); @@