From f9fc583f179e4a811b7f5058626e99e549412e42 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Mon, 5 Jun 2006 17:51:20 +0000 Subject: 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 --- sys/dev/ath/if_ath_pci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/ath/if_ath_pci.c') 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. -- cgit v1.2.3