summaryrefslogtreecommitdiffstats
path: root/common/blspec.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-26 08:49:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-26 09:21:36 +0200
commit292c9e655a8493f7decf14343542cac387c5999a (patch)
treea4bd11e791eebbdfbea43e7c717ee69750b1c8ae /common/blspec.c
parent75aed480a5a1e9d80234b7a99537dbfbfdcbccc2 (diff)
downloadbarebox-292c9e655a8493f7decf14343542cac387c5999a.tar.gz
blspec: Use device_detect_by_name
device_detect_by_name will automatically separate by colons now, we no longer have to do this in the blspec code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
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 3506388..2429560 100644
--- a/common/blspec.c
+++ b/common/blspec.c
@@ -575,17 +575,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) {