OSDN Git Service

qdev: Fix i6300 upcast
authorMarkus Armbruster <armbru@redhat.com>
Fri, 4 Sep 2009 22:13:04 +0000 (00:13 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 11 Sep 2009 15:19:47 +0000 (10:19 -0500)
commitd03f09ccdee789168b5a26d2f4c5187717ec5605
tree954f040927be8d2080ef0947fcefad4de2e2a207
parented757e140c0ada220f213036e4497315d24ca8bc
qdev: Fix i6300 upcast

Use DO_UPCAST() instead of container_of() to go from PCIDevice to
I6300State.  This ensures that PCIDevice is the first member of struct
I6300State.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/wdt_i6300esb.c