summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac/ata_kauai.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc/powermac/ata_kauai.c')
-rw-r--r--sys/powerpc/powermac/ata_kauai.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/powerpc/powermac/ata_kauai.c b/sys/powerpc/powermac/ata_kauai.c
index f8817b1..47d8115 100644
--- a/sys/powerpc/powermac/ata_kauai.c
+++ b/sys/powerpc/powermac/ata_kauai.c
@@ -169,6 +169,7 @@ ata_kauai_probe(device_t dev)
}
ch = device_get_softc(dev);
+ bzero(ch, sizeof(struct ata_channel));
rid = PCIR_BARS;
mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
@@ -192,6 +193,7 @@ ata_kauai_probe(device_t dev)
ch->locking = ata_kauai_locknoop;
ch->device[MASTER].setmode = ata_kauai_setmode;
ch->device[SLAVE].setmode = ata_kauai_setmode;
+ ata_generic_hw(ch);
return (ata_probe(dev));
}
OpenPOWER on IntegriCloud