aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ath/if_ath_pci.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2006-06-05 17:51:20 +0000
committerSam Leffler <sam@FreeBSD.org>2006-06-05 17:51:20 +0000
commitf9fc583f179e4a811b7f5058626e99e549412e42 (patch)
tree6d698fccf1390fee0ca6fcb3d3cfd28bf9c03fe4 /sys/dev/ath/if_ath_pci.c
parent624fc6d1d9957065529c1b19a2e4c81b2e5e361e (diff)
downloadsrc-f9fc583f179e4a811b7f5058626e99e549412e42.tar.gz
src-f9fc583f179e4a811b7f5058626e99e549412e42.zip
move hal bus+tag externalization to the bus glue code where it belongs;
this is a noop on all current freebsd architectures MFC after: 1 month
Notes
Notes: svn path=/head/; revision=159290
Diffstat (limited to 'sys/dev/ath/if_ath_pci.c')
-rw-r--r--sys/dev/ath/if_ath_pci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ath/if_ath_pci.c b/sys/dev/ath/if_ath_pci.c
index cbed3c0d7a22..686fc4daa710 100644
--- a/sys/dev/ath/if_ath_pci.c
+++ b/sys/dev/ath/if_ath_pci.c
@@ -148,8 +148,9 @@ ath_pci_attach(device_t dev)
device_printf(dev, "cannot map register space\n");
goto bad;
}
- sc->sc_st = rman_get_bustag(psc->sc_sr);
- sc->sc_sh = rman_get_bushandle(psc->sc_sr);
+ /* NB: these casts are known to be safe */
+ sc->sc_st = (HAL_BUS_TAG) rman_get_bustag(psc->sc_sr);
+ sc->sc_sh = (HAL_BUS_HANDLE) rman_get_bushandle(psc->sc_sr);
/*
* Mark device invalid so any interrupts (shared or otherwise)
* that arrive before the HAL is setup are discarded.