]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit53f603b170e95a87a514d59cbe633e74189ef8f3
tree4c4db56f64fa796e87d693835cb14b4f31f6303b
parentd1b74227aad96035067c28a6606392a409a0c18a
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