aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/libata-core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index b4abd6850367..396493cc98ce 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -5478,11 +5478,10 @@ int ata_device_add(const struct ata_probe_ent *ent)
5478 int irq_line = ent->irq; 5478 int irq_line = ent->irq;
5479 5479
5480 ap = ata_port_add(ent, host, i); 5480 ap = ata_port_add(ent, host, i);
5481 host->ports[i] = ap;
5481 if (!ap) 5482 if (!ap)
5482 goto err_out; 5483 goto err_out;
5483 5484
5484 host->ports[i] = ap;
5485
5486 /* dummy? */ 5485 /* dummy? */
5487 if (ent->dummy_port_mask & (1 << i)) { 5486 if (ent->dummy_port_mask & (1 << i)) {
5488 ata_port_printk(ap, KERN_INFO, "DUMMY\n"); 5487 ata_port_printk(ap, KERN_INFO, "DUMMY\n");