ppc/pnv: Modify the powerdown notifier to get the PowerNV machine
commit8f06e3705e83c9df5a8dc61bd72b4ccf2794f076
authorCédric Le Goater <clg@kaod.org>
Thu, 19 Dec 2019 18:11:43 +0000 (19 19:11 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 8 Jan 2020 00:01:59 +0000 (8 11:01 +1100)
tree1f329629a1da2b05ebd8e63c72f4a15d72743285
parent905db91697f53377b70c86fa8521308cdc25510b
ppc/pnv: Modify the powerdown notifier to get the PowerNV machine

Use container_of() instead of qdev_get_machine()

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20191219181155.32530-2-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv.c