Skip to content
Commit 8a0a1af3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Stephen Warren
Browse files

spi: tegra: checking for ERR_PTR instead of NULL



dma_request_slave_channel() returns NULL on error and not ERR_PTRs.
I've fixed this by using dma_request_slave_channel_reason() which does
return ERR_PTRs.

Fixes: a915d150 ('spi: tegra: convert to standard DMA DT bindings')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent f1d6ff79
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment