Make "atapi less" kernels link again.

Question is if we should allow the ioctl only interface to be
created if atapi devices are present, but no driver linked in....
This commit is contained in:
Søren Schmidt 2001-09-01 08:47:11 +00:00
parent f676ae2b46
commit 1f3d9edf37

View File

@ -397,6 +397,7 @@ ataioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct proc *p)
return 0;
}
#if defined(DEV_ATAPICD) || defined(DEV_ATAPIFD) || defined(DEV_ATAPIST)
case ATAPICMD: {
struct ata_softc *scp;
struct atapi_softc *atp;
@ -437,6 +438,7 @@ ataioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct proc *p)
free(buf, M_ATA);
return error;
}
#endif
}
return ENOTTY;
}