1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

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
This commit is contained in:
Sam Leffler 2006-05-06 23:23:39 +00:00
parent 7dfd9569a2
commit 34e2d6230c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158341

View File

@ -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);