powerpc/nvram: Change nvram_setup_partition() to use new helper
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 2 Aug 2010 00:13:56 +0000 (10:13 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 30 Nov 2010 04:35:08 +0000 (15:35 +1100)
commitd9626947f20b3dc0992e4ac28b477f7601f8f16e
tree8ba2e79713cf16a0a51ee6639b634ffed337bb92
parentcf5cbf9f8085eb45316d6e3c888a77cc50696701
powerpc/nvram: Change nvram_setup_partition() to use new helper

This changes the function to use nvram_find_partition() instead
of doing the lookup "by hand". It also makes some of the logic
clearer and prints out more useful diagnostic information.

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