diff options
author | sos <sos@FreeBSD.org> | 2001-09-01 08:47:11 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2001-09-01 08:47:11 +0000 |
commit | 774f09de4fdfec6442361b12f10216c0c00bd3ed (patch) | |
tree | 50fcdd18cb984dbf44beded6a043f788bad0f319 /sys/dev/ata | |
parent | 396c50b0c10ef7bd39a5ac7d7232a64ee4e41160 (diff) | |
download | FreeBSD-src-774f09de4fdfec6442361b12f10216c0c00bd3ed.zip FreeBSD-src-774f09de4fdfec6442361b12f10216c0c00bd3ed.tar.gz |
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....
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/ata-all.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index ce29a86..b6544d8 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -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; } |