svn commit: r254990 - head/sys/mips/atheros

Luiz Otavio O Souza loos at FreeBSD.org
Wed Aug 28 14:46:15 UTC 2013


Author: loos
Date: Wed Aug 28 14:46:15 2013
New Revision: 254990
URL: http://svnweb.freebsd.org/changeset/base/254990

Log:
  Make ar71xx_spi attach the next free unit of spibus and not only spibus0.
  
  Approved by:	adrian (mentor)

Modified:
  head/sys/mips/atheros/ar71xx_spi.c

Modified: head/sys/mips/atheros/ar71xx_spi.c
==============================================================================
--- head/sys/mips/atheros/ar71xx_spi.c	Wed Aug 28 14:43:04 2013	(r254989)
+++ head/sys/mips/atheros/ar71xx_spi.c	Wed Aug 28 14:46:15 2013	(r254990)
@@ -108,7 +108,7 @@ ar71xx_spi_attach(device_t dev)
 	SPI_WRITE(sc, AR71XX_SPI_CTRL, 0x43);
 	SPI_WRITE(sc, AR71XX_SPI_IO_CTRL, SPI_IO_CTRL_CSMASK);
 
-	device_add_child(dev, "spibus", 0);
+	device_add_child(dev, "spibus", -1);
 	return (bus_generic_attach(dev));
 }
 


More information about the svn-src-all mailing list