spapr_pci: Get rid of duplicate code for node name creation
commitc413605ba6bfe9ae9f27d316f573df562d70830a
authorGreg Kurz <groug@kaod.org>
Fri, 5 Apr 2019 16:30:43 +0000 (5 18:30 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 26 Apr 2019 01:37:57 +0000 (26 11:37 +1000)
treee0baa4ffa49807c0ea39421ff1f0a43b5f055a6b
parenteb512d15a0c90a90400f7e4d2e40cb27eb1e914a
spapr_pci: Get rid of duplicate code for node name creation

According to the changelog of 298a971024534, SpaprPhbState::dtbusname was
introduced to "make it easier to relate the guest and qemu views of memory
to each other", hence its name.

Use it when creating the PHB node to avoid code duplication.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <155448184292.8446.8225650773162648595.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_pci.c