aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ata/ata-cbus.c
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>2005-04-30 16:22:07 +0000
committerSøren Schmidt <sos@FreeBSD.org>2005-04-30 16:22:07 +0000
commit0068f98f8841a3a9041998073ea5241904a84658 (patch)
treee259973366cf692372899b33dcf524ca0258ebb1 /sys/dev/ata/ata-cbus.c
parenta4f4bae7f574421dcc5481792e059f4aec3adc01 (diff)
downloadsrc-0068f98f8841a3a9041998073ea5241904a84658.tar.gz
src-0068f98f8841a3a9041998073ea5241904a84658.zip
Take newbusification one step further, ie use the device_t more consequently
all way through the code down the layers, instead of the mix'n'match that resulted from the conversion done earlier. Sponsored by: pair.com
Notes
Notes: svn path=/head/; revision=145713
Diffstat (limited to 'sys/dev/ata/ata-cbus.c')
-rw-r--r--sys/dev/ata/ata-cbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-cbus.c b/sys/dev/ata/ata-cbus.c
index 62859cfd22eb..6a4898b03c72 100644
--- a/sys/dev/ata/ata-cbus.c
+++ b/sys/dev/ata/ata-cbus.c
@@ -278,11 +278,11 @@ ata_cbuschannel_probe(device_t dev)
ch->r_io[ATA_CONTROL].res = ctlr->ctlio;
ch->r_io[ATA_CONTROL].offset = 0;
ch->r_io[ATA_IDX_ADDR].res = ctlr->io;
- ata_default_registers(ch);
+ ata_default_registers(dev);
/* initialize softc for this channel */
ch->flags |= ATA_USE_16BIT;
- ata_generic_hw(ch);
+ ata_generic_hw(dev);
return ata_probe(dev);
}