summaryrefslogtreecommitdiffstats
path: root/common/blspec.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-07-03 08:37:52 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-07-03 08:37:52 +0200
commit7b4e61bbf9462b38b496f8e151052c3081125aa4 (patch)
treea3da6659cf5b8745292ef7f2927b17a4deb05b17 /common/blspec.c
parentf2a2894c27db8f5785bfc7fbaddce8873c16661f (diff)
parent221033e217e3a9778d81088801fae45e986ff2e8 (diff)
downloadbarebox-7b4e61bbf9462b38b496f8e151052c3081125aa4.tar.gz
Merge branch 'for-next/mtd'
Conflicts: drivers/mtd/core.c
Diffstat (limited to 'common/blspec.c')
-rw-r--r--common/blspec.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/common/blspec.c b/common/blspec.c
index aef246d..7e84ff3 100644
--- a/common/blspec.c
+++ b/common/blspec.c
@@ -615,17 +615,10 @@ int blspec_scan_devicename(struct blspec *blspec, const char *devname)
{
struct device_d *dev;
struct cdev *cdev;
- const char *colon;
pr_debug("%s: %s\n", __func__, devname);
- colon = strchr(devname, '.');
- if (colon) {
- char *name = xstrdup(devname);
- *strchr(name, '.') = 0;
- device_detect_by_name(name);
- free(name);
- }
+ device_detect_by_name(devname);
cdev = cdev_by_name(devname);
if (cdev) {