summaryrefslogtreecommitdiff
path: root/sys/dev/pcmcia/if_ray.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pcmcia/if_ray.c')
-rw-r--r--sys/dev/pcmcia/if_ray.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/pcmcia/if_ray.c b/sys/dev/pcmcia/if_ray.c
index a20d495834b..f5da8e812e2 100644
--- a/sys/dev/pcmcia/if_ray.c
+++ b/sys/dev/pcmcia/if_ray.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ray.c,v 1.35 2008/10/02 20:21:14 brad Exp $ */
+/* $OpenBSD: if_ray.c,v 1.36 2008/11/21 16:53:05 oga Exp $ */
/* $NetBSD: if_ray.c,v 1.21 2000/07/05 02:35:54 onoe Exp $ */
/*
@@ -353,9 +353,11 @@ int ray_user_update_params(struct ray_softc *,
struct ray_param_req *);
#define ray_read_region(sc,off,p,c) \
- bus_space_read_region_1((sc)->sc_memt, (sc)->sc_memh, (off), (p), (c))
+ bus_space_read_region_1((sc)->sc_memt, (sc)->sc_memh, (off), \
+ (u_int8_t *)(p), (c))
#define ray_write_region(sc,off,p,c) \
- bus_space_write_region_1((sc)->sc_memt, (sc)->sc_memh, (off), (p), (c))
+ bus_space_write_region_1((sc)->sc_memt, (sc)->sc_memh, (off), \
+ (u_int8_t *)(p), (c))
#ifdef RAY_DO_SIGLEV
void ray_update_siglev(struct ray_softc *, u_int8_t *, u_int8_t);