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
@ -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