PERFORCE change 105816 for review

Warner Losh imp at FreeBSD.org
Thu Sep 7 21:46:53 UTC 2006


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

Change 105816 by imp at imp_bugs on 2006/09/07 21:46:06

	Nits

Affected files ...

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

Differences ...

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

@@ -128,20 +128,16 @@
 	sc->cwgr = TWI_CWGR_CKDIV(8 * AT91C_MASTER_CLOCK / 90000) |
 	    TWI_CWGR_CHDIV(TWI_CWGR_DIV(TWI_DEF_CLK)) |
 	    TWI_CWGR_CLDIV(TWI_CWGR_DIV(TWI_DEF_CLK));
-
 	WR4(sc, TWI_CR, TWI_CR_SWRST);
 	WR4(sc, TWI_CR, TWI_CR_MSEN | TWI_CR_SVDIS);
 	WR4(sc, TWI_CWGR, sc->cwgr);
-
 	WR4(sc, TWI_IER, TWI_SR_RXRDY | TWI_SR_OVRE | TWI_SR_UNRE |
 	    TWI_SR_NACK);
 
 	if ((sc->iicbus = device_add_child(dev, "iicbus", -1)) == NULL)
 		device_printf(dev, "could not allocate iicbus instance\n");
-
 	/* probe and attach the iicbus */
 	bus_generic_attach(dev);
-
 out:;
 	if (err)
 		at91_twi_deactivate(dev);


More information about the p4-projects mailing list