summaryrefslogtreecommitdiff
path: root/drivers/soc/samsung
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-07-18 16:43:30 -0500
committerKrzysztof Kozlowski <krzk@kernel.org>2017-07-24 06:47:50 +0200
commite83a71981181a36d36e18e2f2dae3ec84fc37429 (patch)
tree688f02b5498bd33dcd56884c6a2c8e538fd3c7f3 /drivers/soc/samsung
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff)
soc: samsung: Use kbasename instead of open coding
In preparation to not store the full path of nodes in full_name, use kbasename instead as it will work either with the full path or not. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Kukjin Kim <kgene@kernel.org> Cc: Krzysztof Kozlowski <krzk@kernel.org> Cc: linux-samsung-soc@vger.kernel.org Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'drivers/soc/samsung')
-rw-r--r--drivers/soc/samsung/pm_domains.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/samsung/pm_domains.c b/drivers/soc/samsung/pm_domains.c
index a6a5d807cc2b..b3d36aed784f 100644
--- a/drivers/soc/samsung/pm_domains.c
+++ b/drivers/soc/samsung/pm_domains.c
@@ -147,7 +147,7 @@ static __init const char *exynos_get_domain_name(struct device_node *node)
const char *name;
if (of_property_read_string(node, "label", &name) < 0)
- name = strrchr(node->full_name, '/') + 1;
+ name = kbasename(node->full_name);
return kstrdup_const(name, GFP_KERNEL);
}