Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 2015 10:47:42 +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: r287356 - head/sys/dev/mmc/host
Message-ID:  <201509011047.t81AlgII043884@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Tue Sep  1 10:47:42 2015
New Revision: 287356
URL: https://svnweb.freebsd.org/changeset/base/287356

Log:
  Remove an variable we only ever write to, and stop assigning 0 to values
  in the softc as it's the default value. The latter helps with subclassing
  this driver.
  
  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	Tue Sep  1 09:33:24 2015	(r287355)
+++ head/sys/dev/mmc/host/dwmmc.c	Tue Sep  1 10:47:42 2015	(r287356)
@@ -538,7 +538,6 @@ static int
 dwmmc_attach(device_t dev)
 {
 	struct dwmmc_softc *sc;
-	device_t child;
 	int error;
 	int slot;
 
@@ -574,8 +573,6 @@ dwmmc_attach(device_t dev)
 	device_printf(dev, "Hardware version ID is %04x\n",
 		READ4(sc, SDMMC_VERID) & 0xffff);
 
-	sc->use_pio = 0;
-	sc->pwren_inverted = 0;
 	sc->desc_count = DESC_MAX;
 
 	if ((sc->hwtype & HWTYPE_MASK) == HWTYPE_ROCKCHIP) {
@@ -651,7 +648,7 @@ dwmmc_attach(device_t dev)
 	sc->host.host_ocr = MMC_OCR_320_330 | MMC_OCR_330_340;
 	sc->host.caps = MMC_CAP_4_BIT_DATA;
 
-	child = device_add_child(dev, "mmc", 0);
+	device_add_child(dev, "mmc", 0);
 	return (bus_generic_attach(dev));
 }
 



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