- Fix two minor errors in at91 code.
PR: arm/128959 Submitted by: Bjorn Konig <bkoenig@alpha-tierchen.de> Approved by: kib (mentor)
This commit is contained in:
parent
1a696559de
commit
ec5556611c
@ -176,7 +176,7 @@ at91_mci_attach(device_t dev)
|
||||
* Allocate DMA tags and maps
|
||||
*/
|
||||
err = bus_dma_tag_create(bus_get_dma_tag(dev), 1, 0,
|
||||
BUS_SPACE_MAXADDR_32BIT, US_SPACE_MAXADDR, NULL, NULL, MAXPHYS, 1,
|
||||
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, MAXPHYS, 1,
|
||||
MAXPHYS, BUS_DMA_ALLOCNOW, NULL, NULL, &sc->dmatag);
|
||||
if (err != 0)
|
||||
goto out;
|
||||
|
@ -350,7 +350,7 @@ at91_usart_bus_attach(struct uart_softc *sc)
|
||||
/*
|
||||
* Allocate DMA tags and maps
|
||||
*/
|
||||
err = bus_dma_tag_create(bus_get_dma_tag(dev), 1, 0,
|
||||
err = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), 1, 0,
|
||||
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL,
|
||||
USART_BUFFER_SIZE, 1, USART_BUFFER_SIZE, BUS_DMA_ALLOCNOW, NULL,
|
||||
NULL, &atsc->dmatag);
|
||||
|
Loading…
x
Reference in New Issue
Block a user