aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-probe.c')
-rw-r--r--drivers/ide/ide-probe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index 4aa76c453755..890c15b1b3ae 100644
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -1604,6 +1604,9 @@ struct ide_host *ide_host_alloc_all(const struct ide_port_info *d,
1604 return NULL; 1604 return NULL;
1605 } 1605 }
1606 1606
1607 if (hws[0])
1608 host->dev[0] = hws[0]->dev;
1609
1607 return host; 1610 return host;
1608} 1611}
1609EXPORT_SYMBOL_GPL(ide_host_alloc_all); 1612EXPORT_SYMBOL_GPL(ide_host_alloc_all);