From: Dan Carpenter Date: Mon, 16 Dec 2013 14:02:10 +0000 (+0300) Subject: spi: tegra: checking for ERR_PTR instead of NULL X-Git-Tag: cleanup-for-linus~6^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a0a1af30cbf56b41220a02e34835022c4d72f41;p=pandora-kernel.git 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 Signed-off-by: Stephen Warren --- Reading git-diff-tree failed