OSDN Git Service

spapr: Change DRC attach & detach methods to functions
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 6 Jun 2017 07:44:11 +0000 (17:44 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 8 Jun 2017 04:38:26 +0000 (14:38 +1000)
commit0be4e88621df69f044e043f0f16d4017d35f30ae
tree4a007971cdab76c91a4795dbd40168e154a52186
parentcd74d27e42f25e574195b0d3046acb33fd65b078
spapr: Change DRC attach & detach methods to functions

DRC objects have attach & detach methods, but there's only one
implementation.  Although there are some differences in its behaviour for
different DRC types, the overall structure is the same, so while we might
want different method implementations for some parts, we're unlikely to
want them for the top-level functions.

So, replace them with direct function calls.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Acked-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ppc/spapr.c
hw/ppc/spapr_drc.c
hw/ppc/spapr_pci.c
include/hw/ppc/spapr_drc.h