diff options
author | ru <ru@FreeBSD.org> | 2005-12-04 10:03:00 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-12-04 10:03:00 +0000 |
commit | 1c586a3c0b58f2748ced33998d3565a41faee657 (patch) | |
tree | c0d063aca87dae4c999c9780d5efbf509951cc77 /sys/dev/ispfw/ispfw.c | |
parent | ba947732035bc2e67c5e9e5c9a31dca54a88e902 (diff) | |
download | FreeBSD-src-1c586a3c0b58f2748ced33998d3565a41faee657.zip FreeBSD-src-1c586a3c0b58f2748ced33998d3565a41faee657.tar.gz |
Fix -Wunder and make the sbus code really compile only on sparc64.
Diffstat (limited to 'sys/dev/ispfw/ispfw.c')
-rw-r--r-- | sys/dev/ispfw/ispfw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ispfw/ispfw.c b/sys/dev/ispfw/ispfw.c index a78570b..c65d858 100644 --- a/sys/dev/ispfw/ispfw.c +++ b/sys/dev/ispfw/ispfw.c @@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$"); #include <dev/ispfw/asm_2100.h> #include <dev/ispfw/asm_2200.h> #include <dev/ispfw/asm_2300.h> -#if _MACHINE_ARCH == sparc64 +#ifdef __sparc64__ #include <dev/ispfw/asm_1000.h> #endif @@ -57,7 +57,7 @@ __FBSDID("$FreeBSD$"); #define PCI_PRODUCT_QLOGIC_ISP2300 0x2300 #define PCI_PRODUCT_QLOGIC_ISP2312 0x2312 #define PCI_PRODUCT_QLOGIC_ISP6312 0x6312 -#if _MACHINE_ARCH == sparc64 +#ifdef __sparc64__ #define SBUS_PRODUCT_QLOGIC_ISP1000 0x1000 #endif @@ -132,7 +132,7 @@ isp_get_firmware(int version, int tgtmode, int devid, const u_int16_t **ptrp) case PCI_PRODUCT_QLOGIC_ISP6312: rp = isp_2300_risc_code; break; -#if _MACHINE_ARCH == sparc64 +#ifdef __sparc64__ case SBUS_PRODUCT_QLOGIC_ISP1000: if (tgtmode) break; |