aboutsummaryrefslogtreecommitdiffstats
path: root/hw/intel-hda.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-12-04 11:36:01 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2012-01-27 10:50:46 -0600
commit94afdadcb3ab71f5123f719d74065c6f4cc837ea (patch)
tree747906b65b821ed33449a231b9b68ace8ac06374 /hw/intel-hda.c
parentf79f2bfc6aae76718652f0b3e15a849f7b58104a (diff)
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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/intel-hda.c b/hw/intel-hda.c
index 8cb92d3ff..6e1c5de64 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);