ARM: EXYNOS: Add missing of_node_put() when parsing power domains
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 27 Mar 2015 12:21:28 +0000 (13:21 +0100)
committerKukjin Kim <kgene@kernel.org>
Fri, 5 Jun 2015 17:17:55 +0000 (02:17 +0900)
commitfe4034a3fad748d2fce87fe635359dcde83f188b
treee448450cc884173e267b085a28fbace798ab6cbc
parentc88cad34d4e63a86d38063b38410371efc3ec350
ARM: EXYNOS: Add missing of_node_put() when parsing power domains

Add missing of_node_put() to:
1. Error return path if allocating memory for exynos_pm_domain failed.
2. Second iteration over power domains if a child domain was not
   present or was incomplete.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reported-by: Karol Wrona <k.wrona@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/mach-exynos/pm_domains.c