svn commit: r191293 - projects/mips/sys/mips/atheros

Oleksandr Tymoshenko gonzo at FreeBSD.org
Sun Apr 19 23:06:16 UTC 2009


Author: gonzo
Date: Sun Apr 19 23:06:15 2009
New Revision: 191293
URL: http://svn.freebsd.org/changeset/base/191293

Log:
  - Remove garbage debug output
  - ar71xx_bus_space_reversed is bus_space_tag_t, use it this way

Modified:
  projects/mips/sys/mips/atheros/ar71xx_ehci.c
  projects/mips/sys/mips/atheros/uart_cpu_ar71xx.c

Modified: projects/mips/sys/mips/atheros/ar71xx_ehci.c
==============================================================================
--- projects/mips/sys/mips/atheros/ar71xx_ehci.c	Sun Apr 19 23:03:57 2009	(r191292)
+++ projects/mips/sys/mips/atheros/ar71xx_ehci.c	Sun Apr 19 23:06:15 2009	(r191293)
@@ -111,7 +111,6 @@ ar71xx_ehci_probe(device_t self)
 {
 
 	device_set_desc(self, EHCI_HC_DEVSTR);
-	printf("EHCI probed\n");
 
 	return (BUS_PROBE_DEFAULT);
 }
@@ -124,7 +123,6 @@ ar71xx_ehci_attach(device_t self)
 	int err;
 	int rid;
 
-	printf("EHCI attach\n");
 	/* initialise some bus fields */
 	sc->sc_bus.parent = self;
 	sc->sc_bus.devices = sc->sc_devices;
@@ -151,7 +149,7 @@ ar71xx_ehci_attach(device_t self)
 	 * Craft special resource for bus space ops that handle
 	 * byte-alignment of non-word addresses.  
 	 */
-	sc->sc_io_tag = &ar71xx_bus_space_reversed;
+	sc->sc_io_tag = ar71xx_bus_space_reversed;
 	sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res);
 	sc->sc_io_size = rman_get_size(sc->sc_io_res);
 

Modified: projects/mips/sys/mips/atheros/uart_cpu_ar71xx.c
==============================================================================
--- projects/mips/sys/mips/atheros/uart_cpu_ar71xx.c	Sun Apr 19 23:03:57 2009	(r191292)
+++ projects/mips/sys/mips/atheros/uart_cpu_ar71xx.c	Sun Apr 19 23:06:15 2009	(r191293)
@@ -55,7 +55,7 @@ uart_cpu_getdev(int devtype, struct uart
 {
 	di->ops = uart_getops(&uart_ns8250_class);
 	di->bas.chan = 0;
-	di->bas.bst = &ar71xx_bus_space_reversed;
+	di->bas.bst = ar71xx_bus_space_reversed;
 	di->bas.regshft = 2;
 	/* TODO: calculate proper AHB freq using PLL registers */
 	di->bas.rclk = 85000000;
@@ -66,7 +66,7 @@ uart_cpu_getdev(int devtype, struct uart
 
 	/* TODO: check if uart_bus_space_io mandatory to set */
 	uart_bus_space_io = NULL;
-	uart_bus_space_mem = &ar71xx_bus_space_reversed;
+	uart_bus_space_mem = ar71xx_bus_space_reversed;
 	/* 
 	 * FIXME:
 	 * 3 is to compensate big endian, uart operates 


More information about the svn-src-projects mailing list