spapr: Implement get_dt_compatible() callback
commit864674fa29ab61681b8c72c3c41251e985daabed
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 21 Jan 2020 15:29:31 +0000 (21 10:29 -0500)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sun, 2 Feb 2020 03:07:57 +0000 (2 14:07 +1100)
tree3be6e34d25a453d878d08e1a3c87cd9fdb6b2bb7
parent3688d73b6e2b7b3fb71ed9fb6e38fd05d39de05b
spapr: Implement get_dt_compatible() callback

For devices that cannot be statically initialized, implement a
get_dt_compatible() callback that allows us to ask the device for
the 'compatible' value.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20200121152935.649898-3-stefanb@linux.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_vio.c
include/hw/ppc/spapr_vio.h