mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
[POWERPC] Avoid putting cpu node twice
Call of_find_node_by_type with NULL instead of np so the cpu node does not get put twice. This was causing kref_put warnings. Signed-off-by: John Rigby <jrigby@freescale.com> Acked-by: Sylvain Munaut <tnt@246tNt.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
057b184a00
commit
6ec367091a
1 changed files with 4 additions and 2 deletions
|
@ -108,9 +108,11 @@ static void __init lite5200_setup_arch(void)
|
|||
lite5200_setup_cpu(); /* Platorm specific */
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
np = of_find_node_by_type(np, "pci");
|
||||
if (np)
|
||||
np = of_find_node_by_type(NULL, "pci");
|
||||
if (np) {
|
||||
mpc52xx_add_bridge(np);
|
||||
of_node_put(np);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_BLK_DEV_INITRD
|
||||
|
|
Loading…
Reference in a new issue