diff options
author | yokota <yokota@FreeBSD.org> | 1999-05-09 04:58:13 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 1999-05-09 04:58:13 +0000 |
commit | 58c19147f4605aaf8a46a34a01ff899c039fba57 (patch) | |
tree | 8f84cd0419b5500d9be990fd9091efc61fd548d3 /sys/i386/bios | |
parent | 3f092f37965945708e3f0e375a36a308871e96eb (diff) | |
download | FreeBSD-src-58c19147f4605aaf8a46a34a01ff899c039fba57.zip FreeBSD-src-58c19147f4605aaf8a46a34a01ff899c039fba57.tar.gz |
Make apm_probe() properly return an error code when APM BIOS calls
failed, so that the apm driver won't be attached.
Diffstat (limited to 'sys/i386/bios')
-rw-r--r-- | sys/i386/bios/apm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c index bacaec3..8f5b5ad 100644 --- a/sys/i386/bios/apm.c +++ b/sys/i386/bios/apm.c @@ -15,7 +15,7 @@ * * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * - * $Id: apm.c,v 1.82 1999/05/07 10:10:17 phk Exp $ + * $Id: apm.c,v 1.83 1999/05/08 21:59:13 dfr Exp $ */ #include "opt_devfs.h" @@ -739,13 +739,13 @@ apm_probe(device_t dev) switch (apm_version) { case APMINI_CANTFIND: /* silent */ - return 0; + return ENXIO; case APMINI_NOT32BIT: printf("apm: 32bit connection is not supported.\n"); - return 0; + return ENXIO; case APMINI_CONNECTERR: printf("apm: 32-bit connection error.\n"); - return 0; + return ENXIO; } if (flags & 0x20) statclock_disable = 1; |