diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-04 11:36:01 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-01-27 10:50:46 -0600 |
commit | 94afdadcb3ab71f5123f719d74065c6f4cc837ea (patch) | |
tree | 747906b65b821ed33449a231b9b68ace8ac06374 /hw/intel-hda.c | |
parent | f79f2bfc6aae76718652f0b3e15a849f7b58104a (diff) | |
download | qemu-94afdadcb3ab71f5123f719d74065c6f4cc837ea.tar.gz qemu-94afdadcb3ab71f5123f719d74065c6f4cc837ea.tar.bz2 qemu-94afdadcb3ab71f5123f719d74065c6f4cc837ea.zip |
qdev: use a wrapper to access reset and promote reset to a class method
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/intel-hda.c')
-rw-r--r-- | hw/intel-hda.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/intel-hda.c b/hw/intel-hda.c index 8cb92d3ff2..6e1c5de646 100644 --- a/hw/intel-hda.c +++ b/hw/intel-hda.c @@ -1116,9 +1116,7 @@ static void intel_hda_reset(DeviceState *dev) /* reset codecs */ QTAILQ_FOREACH(qdev, &d->codecs.qbus.children, sibling) { cdev = DO_UPCAST(HDACodecDevice, qdev, qdev); - if (qdev_get_info(qdev)->reset) { - qdev_get_info(qdev)->reset(qdev); - } + device_reset(DEVICE(cdev)); d->state_sts |= (1 << cdev->cad); } intel_hda_update_irq(d); |