提交 fc12c116 编写于 作者: C Christoph Hellwig 提交者: Greg Kroah-Hartman

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: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 27c310c5
...@@ -753,7 +753,7 @@ static int mpsc_alloc_ring_mem(struct mpsc_port_info *pi) ...@@ -753,7 +753,7 @@ static int mpsc_alloc_ring_mem(struct mpsc_port_info *pi)
pi->port.line); pi->port.line);
if (!pi->dma_region) { 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"); printk(KERN_ERR "MPSC: Inadequate DMA support\n");
rc = -ENXIO; rc = -ENXIO;
} else if ((pi->dma_region = dma_alloc_noncoherent(pi->port.dev, } else if ((pi->dma_region = dma_alloc_noncoherent(pi->port.dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册