There is no need to get the bus tag or handle.
Sponsored by: ABT Systems Ltd
This commit is contained in:
parent
3af96d2320
commit
52d4a578ff
@ -117,8 +117,6 @@ struct idmac_desc {
|
|||||||
|
|
||||||
struct dwmmc_softc {
|
struct dwmmc_softc {
|
||||||
struct resource *res[2];
|
struct resource *res[2];
|
||||||
bus_space_tag_t bst;
|
|
||||||
bus_space_handle_t bsh;
|
|
||||||
device_t dev;
|
device_t dev;
|
||||||
void *intr_cookie;
|
void *intr_cookie;
|
||||||
struct mmc_host host;
|
struct mmc_host host;
|
||||||
@ -563,10 +561,6 @@ dwmmc_attach(device_t dev)
|
|||||||
return (ENXIO);
|
return (ENXIO);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Memory interface */
|
|
||||||
sc->bst = rman_get_bustag(sc->res[0]);
|
|
||||||
sc->bsh = rman_get_bushandle(sc->res[0]);
|
|
||||||
|
|
||||||
/* Setup interrupt handler. */
|
/* Setup interrupt handler. */
|
||||||
error = bus_setup_intr(dev, sc->res[1], INTR_TYPE_NET | INTR_MPSAFE,
|
error = bus_setup_intr(dev, sc->res[1], INTR_TYPE_NET | INTR_MPSAFE,
|
||||||
NULL, dwmmc_intr, sc, &sc->intr_cookie);
|
NULL, dwmmc_intr, sc, &sc->intr_cookie);
|
||||||
|
Loading…
Reference in New Issue
Block a user