diff options
author | sos <sos@FreeBSD.org> | 2005-03-31 15:05:40 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2005-03-31 15:05:40 +0000 |
commit | 372caa3813e5713c7917cd6f90078a45d2da71dd (patch) | |
tree | 0748406e400c9f20fecff6bc5b58c77e39c8beee /sys/dev/ata/ata-lowlevel.c | |
parent | 2510e6c031d747c3122063fca085c26d4a13c2cd (diff) | |
download | FreeBSD-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.c | 2 |
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); |