PERFORCE change 94615 for review

Warner Losh imp at FreeBSD.org
Tue Apr 4 17:33:33 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=94615

Change 94615 by imp at imp_Speedy on 2006/04/04 17:32:43

	Aarrggghhh.  compile nits.

Affected files ...

.. //depot/projects/arm/src/sys/arm/at91/at91_twi.c#12 edit

Differences ...

==== //depot/projects/arm/src/sys/arm/at91/at91_twi.c#12 (text+ko) ====

@@ -40,7 +40,6 @@
 
 #include <arm/at91/at91rm92reg.h>
 #include <arm/at91/at91_twireg.h>
-#include <arm/at91/at91_twiio.h>
 
 #include <dev/iicbus/iiconf.h>
 #include <dev/iicbus/iicbus.h>
@@ -153,8 +152,10 @@
 static int
 at91_twi_detach(device_t dev)
 {
+	struct at91_twi_softc *sc;
 	int rv;
 
+	sc = device_get_softc(dev);
 	at91_twi_deactivate(dev);
 	if (sc->iicbus && (rv = device_delete_child(dev, sc->iicbus)) != 0)
 		return (rv);


More information about the p4-projects mailing list