aboutsummaryrefslogtreecommitdiff
path: root/hw/ide/ide-dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/ide/ide-dev.c')
-rw-r--r--hw/ide/ide-dev.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/ide/ide-dev.c b/hw/ide/ide-dev.c
index 799bd4b6ec..722c4e78ca 100644
--- a/hw/ide/ide-dev.c
+++ b/hw/ide/ide-dev.c
@@ -118,10 +118,7 @@ void ide_dev_initfn(IDEDevice *dev, IDEDriveKind kind, Error **errp)
return;
}
- if (ide_init_drive(s, dev->conf.blk, kind,
- dev->version, dev->serial, dev->model, dev->wwn,
- dev->conf.cyls, dev->conf.heads, dev->conf.secs,
- dev->chs_trans, errp) < 0) {
+ if (ide_init_drive(s, dev, kind, errp) < 0) {
return;
}