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:
parent
f676ae2b46
commit
1f3d9edf37
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user