shpc: unparent device before free
commite9adf2605da1827b223807b4a2efafe97d7568e6
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 4 Jun 2012 14:29:54 +0000 (4 17:29 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Jun 2012 14:18:58 +0000 (7 17:18 +0300)
tree99c5da37fbb6035218f7ab4189545023b8f8ec5f
parent8cc9b43f7c5f826b39af4b012ad89bb55faac29c
shpc: unparent device before free

Recent core change removed unparent
so we need to do this in all callers now.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/shpc.c