powerpc: Ensure that ppc_md is empty before probing for machine type
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Jul 2016 05:03:59 +0000 (15:03 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Jul 2016 08:59:21 +0000 (18:59 +1000)
commit84b62c72faa197a5c9b75ee93527add31695fb32
tree2b17401ea116e80f5c36b228d349e48dc7f9c9af
parent7025776ed1ebdfa1959932e7a4662c2f88607df0
powerpc: Ensure that ppc_md is empty before probing for machine type

Anything in there will be overwritten, so it helps catching nasty
bugs if we check that it's indeed full of NULL's before we do so.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/setup-common.c