diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-02-20 17:05:20 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-02-28 00:23:39 +0100 |
commit | dcaff46101c1f3abd97bbc5ba2f6c904def4e3b3 (patch) | |
tree | b15074b1b32d9b2238e55e214d8d73738dfa5025 /hw/ide/ide-dev.c | |
parent | b5a9de3259f4c791bde2faff086dd5737625e41e (diff) |
ide: collapse parameters to ide_init_drive
All calls to ide_init_drive comes from ide_dev_initfn. Just pass down the
IDEDevice (IDEState is kinda obsolete and should be merged into IDEDevice).
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/ide/ide-dev.c')
-rw-r--r-- | hw/ide/ide-dev.c | 5 |
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; } |