diff --git a/sys/dev/ata/ata-dma.c b/sys/dev/ata/ata-dma.c index 06def844e7ad..f91ce777c936 100644 --- a/sys/dev/ata/ata-dma.c +++ b/sys/dev/ata/ata-dma.c @@ -48,6 +48,8 @@ #include #include +#if NPCI > 0 + /* prototypes */ static void promise_timing(struct ata_softc *, int32_t, int32_t); static void hpt366_timing(struct ata_softc *, int32_t, int32_t); @@ -58,8 +60,6 @@ static void hpt366_timing(struct ata_softc *, int32_t, int32_t); #define vtophys(va) alpha_XXX_dmamap((vm_offset_t)va) #endif -#if NPCI > 0 - void ata_dmainit(struct ata_softc *scp, int32_t device, int32_t apiomode, int32_t wdmamode, int32_t udmamode) @@ -652,11 +652,10 @@ hpt366_timing(struct ata_softc *scp, int32_t devno, int32_t mode) #else /* NPCI > 0 */ -int32_t +void ata_dmainit(struct ata_softc *scp, int32_t device, int32_t piomode, int32_t wdmamode, int32_t udmamode) { - return -1; } int32_t