On 12/13/2013 09:42 PM, Wei Yongjun wrote:
> From: Wei Yongjun <[email protected]>
>
> In case of error, the function dma_request_slave_channel() returns
> NULL pointer not ERR_PTR(). The IS_ERR() test in the return value
> diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c
> dma_chan = dma_request_slave_channel(tspi->dev,
> dma_to_memory ? "rx" : "tx");
> - if (IS_ERR(dma_chan)) {
...
> + if (!dma_chan) {
The code should be calling dma_request_slave_channel_or_reason() rather
than dma_request_slave_channel(). Dan Williams provided a patch to fix
this, which I've now applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html