]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ata/libata-scsi.c
ath6kl: fix open parenthesis alignment in ath6kl_sdio_suspend()
[karo-tx-linux.git] / drivers / ata / libata-scsi.c
index 2a5412e7e9c11c85d23c12959ad503f9f2e182aa..508a60bfe5c12655353eb2eed6c15690bdb293e5 100644 (file)
@@ -3381,6 +3381,7 @@ int ata_scsi_add_hosts(struct ata_host *host, struct scsi_host_template *sht)
                if (!shost)
                        goto err_alloc;
 
+               shost->eh_noresume = 1;
                *(struct ata_port **)&shost->hostdata[0] = ap;
                ap->scsi_host = shost;
 
@@ -3398,7 +3399,7 @@ int ata_scsi_add_hosts(struct ata_host *host, struct scsi_host_template *sht)
                 */
                shost->max_host_blocked = 1;
 
-               rc = scsi_add_host(ap->scsi_host, ap->host->dev);
+               rc = scsi_add_host(ap->scsi_host, &ap->tdev);
                if (rc)
                        goto err_add;
        }