summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-10-31 16:16:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-11-05 08:37:54 +0100
commit2f5d04241c8184888ac10c9bf4bd3199a003bfab (patch)
tree09f99e27aa390799133ded9ab5583614d9945328
parentd00ad9572dec1ff70bdab2c89ccf6f3dae82b6cb (diff)
downloadbarebox-2f5d04241c8184888ac10c9bf4bd3199a003bfab.tar.gz
barebox-2f5d04241c8184888ac10c9bf4bd3199a003bfab.tar.xz
blspec: Push device_detect into blspec_scan_device
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/blspec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/blspec.c b/common/blspec.c
index a564602d46..dd8ec4b478 100644
--- a/common/blspec.c
+++ b/common/blspec.c
@@ -317,6 +317,8 @@ int blspec_scan_device(struct blspec *blspec, struct device_d *dev)
pr_debug("%s: %s\n", __func__, dev_name(dev));
+ device_detect(dev);
+
list_for_each_entry(cdev, &dev->cdevs, devices_list) {
/*
* If the OS is installed on a disk with MBR disk label, and a
@@ -374,8 +376,6 @@ int blspec_scan_hwdevice(struct blspec *blspec, const char *devname)
if (!dev)
return -ENODEV;
- device_detect(dev);
-
blspec_scan_device(blspec, dev);
return 0;