spi: davinci: use dma_mapping_error()
authorKevin Hilman <khilman@baylibre.com>
Thu, 12 Jan 2017 02:18:40 +0000 (18:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jul 2017 12:37:20 +0000 (14:37 +0200)
commit11dd9e2c480324b46118ff708ea2ca8d7022539b
treebe2bfc73b14b85ff53e454977918390cb7614f99
parentbe91b09750bf6c68076b3ce68d234d0d0829d2e0
spi: davinci: use dma_mapping_error()

[ Upstream commit c5a2a394835f473ae23931eda5066d3771d7b2f8 ]

The correct error checking for dma_map_single() is to use
dma_mapping_error().

Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-davinci.c