From 80d315e21950f4c5ae17c3f8dda31d78c5bf73e4 Mon Sep 17 00:00:00 2001 From: loos Date: Wed, 28 Aug 2013 14:46:15 +0000 Subject: Make ar71xx_spi attach the next free unit of spibus and not only spibus0. Approved by: adrian (mentor) --- sys/mips/atheros/ar71xx_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/mips/atheros') diff --git a/sys/mips/atheros/ar71xx_spi.c b/sys/mips/atheros/ar71xx_spi.c index 92cc365..095f930 100644 --- a/sys/mips/atheros/ar71xx_spi.c +++ b/sys/mips/atheros/ar71xx_spi.c @@ -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)); } -- cgit v1.1