From 1fcaa98da53b2715361878c820594aa369830ade Mon Sep 17 00:00:00 2001 From: Duncan Barclay Date: Tue, 8 May 2001 23:57:32 +0000 Subject: [PATCH] Use enumeration types for CARD_SET_RES_FLAGS. Approved by: imp --- sys/dev/cnw/if_cnw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/cnw/if_cnw.c b/sys/dev/cnw/if_cnw.c index b291ff23af84..fdfb903ef95f 100644 --- a/sys/dev/cnw/if_cnw.c +++ b/sys/dev/cnw/if_cnw.c @@ -264,6 +264,7 @@ struct cfattach cnw_ca = { #include +#include #include "card_if.h" #include @@ -1701,7 +1702,7 @@ static int cnw_alloc(dev) } error = CARD_SET_RES_FLAGS(device_get_parent(dev), dev, - SYS_RES_MEMORY, rid, 2); + SYS_RES_MEMORY, rid, PCCARD_A_MEM_8BIT); if (error) { device_printf(dev, "CARD_SET_RES_FLAGS returned 0x%0x\n", error);