Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2015 16:27:52 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287214 - head/sys/dev/mmc/host
Message-ID:  <201508271627.t7RGRqLM031870@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Thu Aug 27 16:27:51 2015
New Revision: 287214
URL: https://svnweb.freebsd.org/changeset/base/287214

Log:
  There is no need to get the bus tag or handle.
  
  Sponsored by:	ABT Systems Ltd

Modified:
  head/sys/dev/mmc/host/dwmmc.c

Modified: head/sys/dev/mmc/host/dwmmc.c
==============================================================================
--- head/sys/dev/mmc/host/dwmmc.c	Thu Aug 27 16:24:30 2015	(r287213)
+++ head/sys/dev/mmc/host/dwmmc.c	Thu Aug 27 16:27:51 2015	(r287214)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508271627.t7RGRqLM031870>