powerpc/nvram: Improve partition removal
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 29 Jul 2010 08:19:59 +0000 (18:19 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 30 Nov 2010 04:34:03 +0000 (15:34 +1100)
commitfa2b4e54d41f3c9f1bee6a7d63ecd4f0ab161e89
tree2f13ba49e5062284e6a3fb20ca5b0c5947e823c4
parente49e2e87235518c21b1f5228809209831e6169e7
powerpc/nvram: Improve partition removal

Existing code is nasty, has bugs etc... rewrite the function
more simply, and make it take the signature and optional
name of the partitions to remove as arguments, thus making
it a more generic utility.

We also try to remove a log partition that we find and is too
small rather than creating a duplicate.

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