summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ata/ata-pci.c')
-rw-r--r--sys/dev/ata/ata-pci.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c
index f47ea82..876e1ff 100644
--- a/sys/dev/ata/ata-pci.c
+++ b/sys/dev/ata/ata-pci.c
@@ -698,21 +698,6 @@ ata_pcichannel_resume(device_t dev)
return ata_resume(dev);
}
-
-#ifndef ATA_CAM
-static int
-ata_pcichannel_locking(device_t dev, int mode)
-{
- struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev));
- struct ata_channel *ch = device_get_softc(dev);
-
- if (ctlr->locking)
- return ctlr->locking(dev, mode);
- else
- return ch->unit;
-}
-#endif
-
static void
ata_pcichannel_reset(device_t dev)
{
@@ -768,9 +753,6 @@ static device_method_t ata_pcichannel_methods[] = {
/* ATA methods */
DEVMETHOD(ata_setmode, ata_pcichannel_setmode),
DEVMETHOD(ata_getrev, ata_pcichannel_getrev),
-#ifndef ATA_CAM
- DEVMETHOD(ata_locking, ata_pcichannel_locking),
-#endif
DEVMETHOD(ata_reset, ata_pcichannel_reset),
DEVMETHOD_END
OpenPOWER on IntegriCloud