]> err.no Git - linux-2.6/blobdiff - drivers/ide/ide-probe.c
ht6560b: remove old history
[linux-2.6] / drivers / ide / ide-probe.c
index 4aa76c45375562450dfe836d955dcddf9e27e799..f0c162488ec4e1fe45dc62fb870c50880c07923d 100644 (file)
@@ -1595,6 +1595,8 @@ struct ide_host *ide_host_alloc_all(const struct ide_port_info *d,
 
                ide_init_port_data(hwif, idx);
 
+               hwif->host = host;
+
                host->ports[i] = hwif;
                host->n_ports++;
        }
@@ -1604,6 +1606,12 @@ struct ide_host *ide_host_alloc_all(const struct ide_port_info *d,
                return NULL;
        }
 
+       if (hws[0])
+               host->dev[0] = hws[0]->dev;
+
+       if (d)
+               host->host_flags = d->host_flags;
+
        return host;
 }
 EXPORT_SYMBOL_GPL(ide_host_alloc_all);