From b3cb2c4a930cd3060360a64d351cca9fabdf2434 Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Wed, 28 Aug 2013 14:46:15 +0000 Subject: [PATCH] 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(-) diff --git a/sys/mips/atheros/ar71xx_spi.c b/sys/mips/atheros/ar71xx_spi.c index 92cc3654d809..095f9306e4d2 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)); }