summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-10-03 17:19:33 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-04 20:14:26 +0200
commitfc12c116b1982c61dfbb6c00673dac50cc2bd7b5 (patch)
treec3e083606e04b317391d767f8d66fd63f3b5f79e /drivers/tty
parentserial: 8250_dma: no need to sync RX buffer (diff)
downloadlinux-fc12c116b1982c61dfbb6c00673dac50cc2bd7b5.tar.xz
linux-fc12c116b1982c61dfbb6c00673dac50cc2bd7b5.zip
mpsc: use dma_set_mask insted of dma_supported
This ensures the dma mask that is supported by the driver is recorded in the device structure. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/mpsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/mpsc.c b/drivers/tty/serial/mpsc.c
index edb32e3f1e84..2f43a58cb392 100644
--- a/drivers/tty/serial/mpsc.c
+++ b/drivers/tty/serial/mpsc.c
@@ -753,7 +753,7 @@ static int mpsc_alloc_ring_mem(struct mpsc_port_info *pi)
pi->port.line);
if (!pi->dma_region) {
- if (!dma_supported(pi->port.dev, 0xffffffff)) {
+ if (!dma_set_mask(pi->port.dev, 0xffffffff)) {
printk(KERN_ERR "MPSC: Inadequate DMA support\n");
rc = -ENXIO;
} else if ((pi->dma_region = dma_alloc_noncoherent(pi->port.dev,