summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-05-06 23:23:39 +0000
committersam <sam@FreeBSD.org>2006-05-06 23:23:39 +0000
commit2355351333c39b2ad88dce15a566a80dbb15f7cb (patch)
treeb37ca6c9ac13e908fe3aa3e554ff341dcace187c
parent21a71db5cadfbc3003f60874e3f9ad3045026a28 (diff)
downloadFreeBSD-src-2355351333c39b2ad88dce15a566a80dbb15f7cb.zip
FreeBSD-src-2355351333c39b2ad88dce15a566a80dbb15f7cb.tar.gz
force type coercion for bus tag+handle when calling ath_hal_attach
to ensure we match the type signature; we cannot assume HAL_BUS_TAG and HAL_BUS_HANDLE correspond to bus_space_tag_t and bus_space_handle_t (should probably do this for HAL_SOFTC too but leave that for now) MFC after: 1 month
-rw-r--r--sys/dev/ath/if_ath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 2ff530b..0fe74d6 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -293,7 +293,8 @@ ath_attach(u_int16_t devid, struct ath_softc *sc)
if_initname(ifp, device_get_name(sc->sc_dev),
device_get_unit(sc->sc_dev));
- ah = ath_hal_attach(devid, sc, sc->sc_st, sc->sc_sh, &status);
+ ah = ath_hal_attach(devid, sc, (HAL_BUS_TAG) sc->sc_st,
+ (HAL_BUS_HANDLE) sc->sc_sh, &status);
if (ah == NULL) {
if_printf(ifp, "unable to attach hardware; HAL status %u\n",
status);
OpenPOWER on IntegriCloud