Commit e83a7198 authored by Rob Herring's avatar Rob Herring Committed by Krzysztof Kozlowski

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: default avatarRob 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: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 5771a8c0
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment