diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2021-09-23 13:11:53 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-09-30 13:44:13 +0100 |
commit | 82c74ac42e1b9e564a3c011dca6215d130b7e6a0 (patch) | |
tree | 0ad96f7e11a6b969d975075c0097efc92a8e9209 /hw/ide/isa.c | |
parent | 9388d1701efa87095d31ed5f68793dfc82cdd47e (diff) | |
download | qemu-82c74ac42e1b9e564a3c011dca6215d130b7e6a0.zip qemu-82c74ac42e1b9e564a3c011dca6215d130b7e6a0.tar.gz qemu-82c74ac42e1b9e564a3c011dca6215d130b7e6a0.tar.bz2 |
ide: Rename ide_bus_new() to ide_bus_init()
The function ide_bus_new() does an in-place initialization. Rename
it to ide_bus_init() to follow our _init vs _new convention.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Acked-by: John Snow <jsnow@redhat.com> (Feel free to merge.)
Message-id: 20210923121153.23754-7-peter.maydell@linaro.org
Diffstat (limited to 'hw/ide/isa.c')
-rw-r--r-- | hw/ide/isa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/isa.c b/hw/ide/isa.c index 6bc19de..24bbde2 100644 --- a/hw/ide/isa.c +++ b/hw/ide/isa.c @@ -73,7 +73,7 @@ static void isa_ide_realizefn(DeviceState *dev, Error **errp) ISADevice *isadev = ISA_DEVICE(dev); ISAIDEState *s = ISA_IDE(dev); - ide_bus_new(&s->bus, sizeof(s->bus), dev, 0, 2); + ide_bus_init(&s->bus, sizeof(s->bus), dev, 0, 2); ide_init_ioport(&s->bus, isadev, s->iobase, s->iobase2); isa_init_irq(isadev, &s->irq, s->isairq); ide_init2(&s->bus, s->irq); |