From 292c9e655a8493f7decf14343542cac387c5999a Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 26 Jun 2015 08:49:21 +0200 Subject: 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 --- common/blspec.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/common/blspec.c b/common/blspec.c index 3506388eb5..2429560509 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) { -- cgit v1.2.3