spapr: Skip leading zeroes from memory@ DT node names
commit3a17e38f6eac0028f2e4ca052455b38a4048c85d
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 3 Sep 2019 02:34:34 +0000 (3 12:34 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 4 Oct 2019 00:25:23 +0000 (4 10:25 +1000)
treef09a84d6de8e7742c79a2908f4b89b3c74fe0db4
parentf767b1ac5766fcc48cc3939eeb7db7b95b98408b
spapr: Skip leading zeroes from memory@ DT node names

The device tree build by QEMU at the machine reset time is used by SLOF
to build its internal device tree but the node names are not preserved
exactly so when QEMU provides a device tree update in response to H_CAS,
it might become tricky to match a node from the update blob to
the actual node in SLOF.

This removed leading zeroes from "memory@" nodes and makes
the DTC checker happy.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
hw/ppc/spapr.c