diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-09-16 11:12:39 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-09-16 11:12:39 +0000 |
commit | d7eb96b6afa56b8f2441b8e02bb75b7b07824ad0 (patch) | |
tree | ab2925aa313c216ecbdb3a3cf85b42c29fdf9499 /sys/dev/ic/bwi.c | |
parent | f196c18724ae2beff2018ceb69fbbb37fe23fd19 (diff) |
CardBus works much better when sc_enable is called.
Remove some safety returns while here.
ok mglocker@
Diffstat (limited to 'sys/dev/ic/bwi.c')
-rw-r--r-- | sys/dev/ic/bwi.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c index 76aadd4fc08..8db485c424f 100644 --- a/sys/dev/ic/bwi.c +++ b/sys/dev/ic/bwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwi.c,v 1.28 2007/09/16 09:58:04 mglocker Exp $ */ +/* $OpenBSD: bwi.c,v 1.29 2007/09/16 11:12:38 jsg Exp $ */ /* * Copyright (c) 2007 The DragonFly Project. All rights reserved. @@ -516,7 +516,7 @@ bwi_intr(void *xsc) uint32_t txrx_intr_status[BWI_TXRX_NRING]; int i, txrx_error; - return (0); + DPRINTF(2, "%s\n", __func__); /* * Get interrupt status @@ -1027,8 +1027,6 @@ bwi_mac_init(struct bwi_mac *mac) if (error) return (error); - return (0); - /* * Turn on RF */ @@ -6379,6 +6377,9 @@ bwi_init(struct ifnet *ifp) return (1); } + if (sc->sc_enable != NULL) + (*sc->sc_enable)(sc); + bwi_bbp_power_on(sc, BWI_CLOCK_MODE_FAST); /* TODO: 2 MAC */ |