]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/nvram: Scan partitions only once
authorCedric Le Goater <clg@fr.ibm.com>
Wed, 30 Oct 2013 13:47:06 +0000 (14:47 +0100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 31 Oct 2013 01:37:26 +0000 (12:37 +1100)
commit773fdde24842ab835006d82b2327798c1a9847df
tree10199fc09f12f878040f63a8e093e70a472a9921
parent91d0a9ef75aab0291bfce0c1a08bc689aad78148
powerpc/nvram: Scan partitions only once

nvram_scan_partitions() is called twice when initializing the "lnx,oops-log"
partition and the "ibm,rtas-log" partition. This fills the partition list
with duplicate entries. This patch moves the partition scan in the init
routine pseries_nvram_init_log_partitions() which is called only once.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/nvram.c