svn commit: r187252 - head/sys/mips/idt

Oleksandr Tymoshenko gonzo at FreeBSD.org
Wed Jan 14 14:46:14 PST 2009


Author: gonzo
Date: Wed Jan 14 22:46:13 2009
New Revision: 187252
URL: http://svn.freebsd.org/changeset/base/187252

Log:
  o Code cleanup, remove unused fields of idtpci_softc

Modified:
  head/sys/mips/idt/idtpci.c

Modified: head/sys/mips/idt/idtpci.c
==============================================================================
--- head/sys/mips/idt/idtpci.c	Wed Jan 14 22:32:43 2009	(r187251)
+++ head/sys/mips/idt/idtpci.c	Wed Jan 14 22:46:13 2009	(r187252)
@@ -125,8 +125,6 @@ struct idtpci_softc {
 	struct rman		sc_mem_rman[2];
 	struct rman		sc_io_rman[2];
 	struct rman		sc_irq_rman;
-	uint32_t		sc_mem;
-	uint32_t		sc_io;
 };
 
 static uint32_t
@@ -155,9 +153,6 @@ idtpci_attach(device_t dev)
 	sc->sc_dev = dev;
 	sc->sc_busno = busno;
 
-	sc->sc_io = 0;
-	sc->sc_mem = 0;
-
 	/* TODO: Check for host mode */
 
 	/* Enabled PCI, IG mode, EAP mode */
@@ -240,7 +235,6 @@ idtpci_attach(device_t dev)
 	}
 
 	/* Use KSEG1 to access IO ports for it is uncached */
-	sc->sc_io = 0;
 	sc->sc_io_rman[0].rm_type = RMAN_ARRAY;
 	sc->sc_io_rman[0].rm_descr = "IDTPCI I/O Ports window 1";
 	if (rman_init(&sc->sc_io_rman[0]) != 0 ||
@@ -258,7 +252,6 @@ idtpci_attach(device_t dev)
 	}
 
 	/* Use KSEG1 to access PCI memory for it is uncached */
-	sc->sc_mem = 0;
 	sc->sc_mem_rman[0].rm_type = RMAN_ARRAY;
 	sc->sc_mem_rman[0].rm_descr = "IDTPCI PCI Memory window 1";
 	if (rman_init(&sc->sc_mem_rman[0]) != 0 ||


More information about the svn-src-head mailing list