summaryrefslogtreecommitdiffstats
path: root/sys/mips/atheros
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2013-08-28 14:46:15 +0000
committerloos <loos@FreeBSD.org>2013-08-28 14:46:15 +0000
commit80d315e21950f4c5ae17c3f8dda31d78c5bf73e4 (patch)
tree691ecbb66c9c35768086f0caea51b5160cff1b0d /sys/mips/atheros
parent0bca027965fc5b6f13992edc4293148be0b23ff3 (diff)
downloadFreeBSD-src-80d315e21950f4c5ae17c3f8dda31d78c5bf73e4.zip
FreeBSD-src-80d315e21950f4c5ae17c3f8dda31d78c5bf73e4.tar.gz
Make ar71xx_spi attach the next free unit of spibus and not only spibus0.
Approved by: adrian (mentor)
Diffstat (limited to 'sys/mips/atheros')
-rw-r--r--sys/mips/atheros/ar71xx_spi.c2
1 files changed, 1 insertions, 1 deletions
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));
}
OpenPOWER on IntegriCloud