diff options
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi_imx.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c index c730d05bfeb6..547e30298278 100644 --- a/drivers/spi/spi_imx.c +++ b/drivers/spi/spi_imx.c | |||
@@ -1526,24 +1526,24 @@ static int __init spi_imx_probe(struct platform_device *pdev) | |||
1526 | drv_data->rx_channel = -1; | 1526 | drv_data->rx_channel = -1; |
1527 | if (platform_info->enable_dma) { | 1527 | if (platform_info->enable_dma) { |
1528 | /* Get rx DMA channel */ | 1528 | /* Get rx DMA channel */ |
1529 | status = imx_dma_request_by_prio(&drv_data->rx_channel, | 1529 | drv_data->rx_channel = imx_dma_request_by_prio("spi_imx_rx", |
1530 | "spi_imx_rx", DMA_PRIO_HIGH); | 1530 | DMA_PRIO_HIGH); |
1531 | if (status < 0) { | 1531 | if (drv_data->rx_channel < 0) { |
1532 | dev_err(dev, | 1532 | dev_err(dev, |
1533 | "probe - problem (%d) requesting rx channel\n", | 1533 | "probe - problem (%d) requesting rx channel\n", |
1534 | status); | 1534 | drv_data->rx_channel); |
1535 | goto err_no_rxdma; | 1535 | goto err_no_rxdma; |
1536 | } else | 1536 | } else |
1537 | imx_dma_setup_handlers(drv_data->rx_channel, NULL, | 1537 | imx_dma_setup_handlers(drv_data->rx_channel, NULL, |
1538 | dma_err_handler, drv_data); | 1538 | dma_err_handler, drv_data); |
1539 | 1539 | ||
1540 | /* Get tx DMA channel */ | 1540 | /* Get tx DMA channel */ |
1541 | status = imx_dma_request_by_prio(&drv_data->tx_channel, | 1541 | drv_data->tx_channel = imx_dma_request_by_prio("spi_imx_tx", |
1542 | "spi_imx_tx", DMA_PRIO_MEDIUM); | 1542 | DMA_PRIO_MEDIUM); |
1543 | if (status < 0) { | 1543 | if (drv_data->tx_channel < 0) { |
1544 | dev_err(dev, | 1544 | dev_err(dev, |
1545 | "probe - problem (%d) requesting tx channel\n", | 1545 | "probe - problem (%d) requesting tx channel\n", |
1546 | status); | 1546 | drv_data->tx_channel); |
1547 | imx_dma_free(drv_data->rx_channel); | 1547 | imx_dma_free(drv_data->rx_channel); |
1548 | goto err_no_txdma; | 1548 | goto err_no_txdma; |
1549 | } else | 1549 | } else |