diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-12-17 21:45:50 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-12-17 21:45:50 +0000 |
commit | cb97e819af08eeeeac1481ad56f19e924be6808e (patch) | |
tree | 8af490beb03e8e64724e20a7e65f72e8e9c05551 /sys/dev/ic/acx100.c | |
parent | f4afcc91ac5a6937d5f7309c8d3abbba9dbf8755 (diff) |
Kill some more macros. This time ACX_NOARG_FUNC and ACX_INIT_TMPLT_FUNC
bite the dust and make the code easier to read. Help and OK mglocker@
Diffstat (limited to 'sys/dev/ic/acx100.c')
-rw-r--r-- | sys/dev/ic/acx100.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/ic/acx100.c b/sys/dev/ic/acx100.c index b65e720a0aa..93b6b722411 100644 --- a/sys/dev/ic/acx100.c +++ b/sys/dev/ic/acx100.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acx100.c,v 1.16 2006/12/13 11:03:54 mglocker Exp $ */ +/* $OpenBSD: acx100.c,v 1.17 2006/12/17 21:45:49 claudio Exp $ */ /* * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org> @@ -216,9 +216,6 @@ ACX100_CONF_FUNC(get, ed_thresh); ACX100_CONF_FUNC(set, ed_thresh); ACX100_CONF_FUNC(set, wepkey); -#define ACXCMD_init_mem ACXCMD_INIT_MEM -ACX_NOARG_FUNC(init_mem); - static const uint16_t acx100_reg[ACXREG_MAX] = { ACXREG(SOFT_RESET, 0x0000), @@ -526,7 +523,7 @@ acx100_init_memory(struct acx_softc *sc) } /* Initialize memory */ - if (acx_init_mem(sc) != 0) { + if (acx_exec_command(sc, ACXCMD_INIT_MEM, NULL, 0, NULL, 0) != 0) { printf("%s: can't init mem\n", ifp->if_xname); return (1); } |