spapr: Rename machine init functions for clarity
commitbcb5ce08cf3ddf69af87cc0fe750c3b564f1e6af
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 8 Dec 2017 01:47:34 +0000 (8 12:47 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 14 Dec 2017 22:49:24 +0000 (15 09:49 +1100)
treebd10befa3f53e96b3e0b5678480d8922aa832abd
parent2a83f9976efa9a85e8ceb9d1035a68f25c321334
spapr: Rename machine init functions for clarity

Machine objects have two init functions - the generic QOM level
instance_init which should only do static object initialization, and
the Machine specific MachineClass::init which does the actual
construction of the machine.

In spapr the functions implementing these two have names -
ppc_machine_initfn() and ppc_spapr_init() - which don't correspond closely
to either of those.  To prevent people (read, me) from confusing which is
which, rename them spapr_instance_init() and spapr_machine_init() to
make it clearer which is which.

While we're there rename ppc_spapr_reset() to spapr_machine_reset() to
match.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
hw/ppc/spapr.c