summaryrefslogtreecommitdiff
path: root/drivers/soc/samsung
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-08-23 21:46:12 +0200
committerArnd Bergmann <arnd@arndb.de>2017-08-23 21:46:12 +0200
commit3889e8510028aa7de0ff84f90cb552a9bb75f0b9 (patch)
tree4fa5a08686583ab4c9961a40628aa7a23a33dc42 /drivers/soc/samsung
parent9261b43e70b79106deca8f734a5217134ce68f3d (diff)
parente83a71981181a36d36e18e2f2dae3ec84fc37429 (diff)
Merge tag 'samsung-drivers-4.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into next/drivers
Pull "Samsung soc drivers changes for v4.14" from Krzysztof Kozłowski: Conversion to kbasename from Rob Herring. * tag 'samsung-drivers-4.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux: soc: samsung: Use kbasename instead of open coding
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 c630eba32066..7c4fec1f93b5 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);
}