soc: samsung: pm_domains: Use full names in subdomains registration log
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 30 Jan 2017 12:18:56 +0000 (13:18 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Tue, 31 Jan 2017 19:30:02 +0000 (21:30 +0200)
Device tree none name for each power domain should be "power-domain", so
use a bit more descriptive full node name in messages about subdomain
registration. This way the following meaningless message:

power-domain has as child subdomain: power-domain.

is changed to a bit more meaningful one:

/soc/power-domain@105c40a0 has as child subdomain: /soc/power-domain@105c4020.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/soc/samsung/pm_domains.c

index 7112004..f265d32 100644 (file)
@@ -227,10 +227,10 @@ no_clk:
 
                if (of_genpd_add_subdomain(&parent, &child))
                        pr_warn("%s failed to add subdomain: %s\n",
-                               parent.np->name, child.np->name);
+                               parent.np->full_name, child.np->full_name);
                else
                        pr_info("%s has as child subdomain: %s.\n",
-                               parent.np->name, child.np->name);
+                               parent.np->full_name, child.np->full_name);
        }
 
        return 0;