diff options
Diffstat (limited to 'sys/i386/bios/apm.c')
-rw-r--r-- | sys/i386/bios/apm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c index 6120723..2ac82c5 100644 --- a/sys/i386/bios/apm.c +++ b/sys/i386/bios/apm.c @@ -78,7 +78,7 @@ int apm_evindex; #define SCFLAG_OCTL 0x0000002 #define SCFLAG_OPEN (SCFLAG_ONORMAL|SCFLAG_OCTL) -#define APMDEV(dev) (minor(dev)&0x0f) +#define APMDEV(dev) (dev2unit(dev)&0x0f) #define APMDEV_NORMAL 0 #define APMDEV_CTL 8 |