summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-lowlevel.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2005-03-31 15:05:40 +0000
committersos <sos@FreeBSD.org>2005-03-31 15:05:40 +0000
commit372caa3813e5713c7917cd6f90078a45d2da71dd (patch)
tree0748406e400c9f20fecff6bc5b58c77e39c8beee /sys/dev/ata/ata-lowlevel.c
parent2510e6c031d747c3122063fca085c26d4a13c2cd (diff)
downloadFreeBSD-src-372caa3813e5713c7917cd6f90078a45d2da71dd.zip
FreeBSD-src-372caa3813e5713c7917cd6f90078a45d2da71dd.tar.gz
Change the ata_* methods to use a channel device instead of a
controller device. This helps when there is no controller parent to a channel (PPC port).
Diffstat (limited to 'sys/dev/ata/ata-lowlevel.c')
-rw-r--r--sys/dev/ata/ata-lowlevel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-lowlevel.c b/sys/dev/ata/ata-lowlevel.c
index bb9d9e0..304b56c 100644
--- a/sys/dev/ata/ata-lowlevel.c
+++ b/sys/dev/ata/ata-lowlevel.c
@@ -619,7 +619,7 @@ ata_generic_reset(struct ata_channel *ch)
}
/* reset host end of channel (if supported) */
- ATA_RESET(device_get_parent(ch->dev), ch->dev);
+ ATA_RESET(ch->dev);
/* do we have any signs of ATA/ATAPI HW being present ? */
ATA_IDX_OUTB(ch, ATA_DRIVE, ATA_D_IBM | ATA_D_LBA | ATA_MASTER);
OpenPOWER on IntegriCloud