diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2012-11-29 07:46:23 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-11-29 09:11:03 -0600 |
commit | e912c96f7d2e5ccd8a6352ee74f5beee2a7d9976 (patch) | |
tree | 32bccac0a6fe9d817d8890bf73eeb700da9956b8 /qemu-tech.texi | |
parent | e9bff10f8db94912b1b0e6e2e3394cae02faf614 (diff) |
qdev: relax bus type check in qdev_device_add() (v2)
We are currently checking for an exact type match. Use QOM dynamic_cast to
check for a compatible type instead.
Cc: Konrad Frederic <fred.konrad@greensocs.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
---
v1 -> v2:
- also add cast to qbus_find_recursive (Peter)
- simplify by doing object_dynamic_cast instead of messing with classes
Diffstat (limited to 'qemu-tech.texi')
0 files changed, 0 insertions, 0 deletions