spi: tegra: checking for ERR_PTR instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 16 Dec 2013 14:02:10 +0000 (17:02 +0300)
committerStephen Warren <swarren@nvidia.com>
Mon, 16 Dec 2013 16:51:58 +0000 (09:51 -0700)
commit8a0a1af30cbf56b41220a02e34835022c4d72f41
treea9191bb4d68bfa5639415ff5f62f96de3880ee90
parentf1d6ff7939b4444079170adc2bba1f551e7f65ea
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: a915d150f68d ('spi: tegra: convert to standard DMA DT bindings')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/spi/spi-tegra20-slink.c