projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27c310c
)
mpsc: use dma_set_mask insted of dma_supported
author
Christoph Hellwig
<hch@lst.de>
Sat, 3 Oct 2015 15:19:33 +0000
(17:19 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 18:14:26 +0000
(19:14 +0100)
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>
drivers/tty/serial/mpsc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/tty/serial/mpsc.c
b/drivers/tty/serial/mpsc.c
index edb32e3f1e84520a341b3a0d60f69f99997ebc25..2f43a58cb3923affa749ce2b0bb7e947dbcdab36 100644
(file)
--- 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_s
upported
(pi->port.dev, 0xffffffff)) {
+ if (!dma_s
et_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,