diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/blspec.c | 4 |
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; |