mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
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>
This commit is contained in:
parent
27c310c5c3
commit
fc12c116b1
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue