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:
parent
2557c4beb1
commit
b3cb2c4a93
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254990
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user