From 2640322a2ebe73c947f016cd4ed17137304e533e Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Thu, 27 Aug 2015 16:27:51 +0000 Subject: [PATCH] There is no need to get the bus tag or handle. Sponsored by: ABT Systems Ltd --- sys/dev/mmc/host/dwmmc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/dev/mmc/host/dwmmc.c b/sys/dev/mmc/host/dwmmc.c index 6aa0a3e0e3c..bf28e47ce76 100644 --- a/sys/dev/mmc/host/dwmmc.c +++ b/sys/dev/mmc/host/dwmmc.c @@ -117,8 +117,6 @@ struct idmac_desc { struct dwmmc_softc { struct resource *res[2]; - bus_space_tag_t bst; - bus_space_handle_t bsh; device_t dev; void *intr_cookie; struct mmc_host host; @@ -563,10 +561,6 @@ dwmmc_attach(device_t dev) return (ENXIO); } - /* Memory interface */ - sc->bst = rman_get_bustag(sc->res[0]); - sc->bsh = rman_get_bushandle(sc->res[0]); - /* Setup interrupt handler. */ error = bus_setup_intr(dev, sc->res[1], INTR_TYPE_NET | INTR_MPSAFE, NULL, dwmmc_intr, sc, &sc->intr_cookie);