powerpc/nvram: Shuffle code around in nvram_create_partition()
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 29 Jul 2010 07:38:55 +0000 (17:38 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 30 Nov 2010 04:33:58 +0000 (15:33 +1100)
commite49e2e87235518c21b1f5228809209831e6169e7
tree4c4db56f64fa796e87d693835cb14b4f31f6303b
parentcef0d5ad62ec6e0c8456b8f58e898aa3219311a5
powerpc/nvram: Shuffle code around in nvram_create_partition()

This error log stuff is really pseries specific. As a first step we move
the initialization of these variables to the caller of
nvram_create_partition(), which is also slightly reorganized so we
setup the free partition before we clear the new partition, so the
chance of an error during clear leaving us with invalid headers
is lessened.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/nvram_64.c