diff options
author | Becky Bruce <becky.bruce@freescale.com> | 2008-09-12 11:42:56 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-09-19 14:34:04 -0400 |
commit | 8b05cefca73bfbd98c89f16327f5d7da52ab7c3c (patch) | |
tree | 41790cff3fbd5baf6395c7e7d55eab46a2c92560 /drivers/serial/ucc_uart.c | |
parent | b38fd42ff46a4a31dced8533e8a6e549693500b6 (diff) |
cpm_uart: Pass actual dev ptr to dma_* in ucc and cpm_uart serial
We're currently passing NULL, and really shouldn't be.
Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Acked-By: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers/serial/ucc_uart.c')
-rw-r--r-- | drivers/serial/ucc_uart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/ucc_uart.c b/drivers/serial/ucc_uart.c index 5c5d18dcb6ac..539c933b335f 100644 --- a/drivers/serial/ucc_uart.c +++ b/drivers/serial/ucc_uart.c | |||
@@ -1009,7 +1009,7 @@ static int qe_uart_request_port(struct uart_port *port) | |||
1009 | rx_size = L1_CACHE_ALIGN(qe_port->rx_nrfifos * qe_port->rx_fifosize); | 1009 | rx_size = L1_CACHE_ALIGN(qe_port->rx_nrfifos * qe_port->rx_fifosize); |
1010 | tx_size = L1_CACHE_ALIGN(qe_port->tx_nrfifos * qe_port->tx_fifosize); | 1010 | tx_size = L1_CACHE_ALIGN(qe_port->tx_nrfifos * qe_port->tx_fifosize); |
1011 | 1011 | ||
1012 | bd_virt = dma_alloc_coherent(NULL, rx_size + tx_size, &bd_dma_addr, | 1012 | bd_virt = dma_alloc_coherent(port->dev, rx_size + tx_size, &bd_dma_addr, |
1013 | GFP_KERNEL); | 1013 | GFP_KERNEL); |
1014 | if (!bd_virt) { | 1014 | if (!bd_virt) { |
1015 | dev_err(port->dev, "could not allocate buffer descriptors\n"); | 1015 | dev_err(port->dev, "could not allocate buffer descriptors\n"); |
@@ -1051,7 +1051,7 @@ static void qe_uart_release_port(struct uart_port *port) | |||
1051 | container_of(port, struct uart_qe_port, port); | 1051 | container_of(port, struct uart_qe_port, port); |
1052 | struct ucc_slow_private *uccs = qe_port->us_private; | 1052 | struct ucc_slow_private *uccs = qe_port->us_private; |
1053 | 1053 | ||
1054 | dma_free_coherent(NULL, qe_port->bd_size, qe_port->bd_virt, | 1054 | dma_free_coherent(port->dev, qe_port->bd_size, qe_port->bd_virt, |
1055 | qe_port->bd_dma_addr); | 1055 | qe_port->bd_dma_addr); |
1056 | 1056 | ||
1057 | ucc_slow_free(uccs); | 1057 | ucc_slow_free(uccs); |