1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254990

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