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)
commitb1092aad31aca91f27c510884681accf6f026273
tree954f040927be8d2080ef0947fcefad4de2e2a207
parentadfda21b67ae10c328ca45cb2e00237be63204a3
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