Make ar71xx_spi attach the next free unit of spibus and not only spibus0.

Approved by:	adrian (mentor)
This commit is contained in:
Luiz Otavio O Souza 2013-08-28 14:46:15 +00:00
parent 2557c4beb1
commit b3cb2c4a93

View File

@ -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));
}