summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ata/atapi-all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-all.c b/sys/dev/ata/atapi-all.c
index dc4e648..0f3c98e 100644
--- a/sys/dev/ata/atapi-all.c
+++ b/sys/dev/ata/atapi-all.c
@@ -128,7 +128,7 @@ notfound:
atp = NULL;
}
/* store our softc */
- atp->controller->dev_softc[(atp->unit==ATA_MASTER)?0:1] = atp;
+ atp->controller->dev_softc[ATA_DEV(atp->unit)] = atp;
}
int32_t
OpenPOWER on IntegriCloud