Date: Wed, 28 Aug 2013 14:46:15 +0000 (UTC) From: Luiz Otavio O Souza <loos@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254990 - head/sys/mips/atheros Message-ID: <201308281446.r7SEkFGT072887@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308281446.r7SEkFGT072887>