[PATCH 02/11] blspec: Push device_detect into blspec_scan_device

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 4 09:04:21 EST 2013


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/blspec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/blspec.c b/common/blspec.c
index a564602..dd8ec4b 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;
-- 
1.8.4.rc3




More information about the barebox mailing list