summaryrefslogtreecommitdiff
path: root/drivers/soc/samsung/pm_domains.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/soc/samsung/pm_domains.c')
-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);
}