aboutsummaryrefslogtreecommitdiff
path: root/hw/ide/isa.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-12-08 13:34:58 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-12-11 21:27:47 +0000
commit3835510f10ac74553ff19df3eb254809f0b593c0 (patch)
treeea4b703c0e29c000599e38c203c6d5c6e71ca8ad /hw/ide/isa.c
parent6a26e1197db1684798c4255955c04e31270eccb8 (diff)
Store IDE bus id in IDEBus structure for easy access.
Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/ide/isa.c')
-rw-r--r--hw/ide/isa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/isa.c b/hw/ide/isa.c
index 4206afd62c..8c59c5a47c 100644
--- a/hw/ide/isa.c
+++ b/hw/ide/isa.c
@@ -67,7 +67,7 @@ static int isa_ide_initfn(ISADevice *dev)
{
ISAIDEState *s = DO_UPCAST(ISAIDEState, dev, dev);
- ide_bus_new(&s->bus, &s->dev.qdev);
+ ide_bus_new(&s->bus, &s->dev.qdev, 0);
ide_init_ioport(&s->bus, s->iobase, s->iobase2);
isa_init_irq(dev, &s->irq, s->isairq);
isa_init_ioport_range(dev, s->iobase, 8);