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:40:25 +0000 (14:40 +0200)
commitaabb797b4c1204b2e8518538b2616e476f2bac92
treed00bf1518705e86db3374d6d10015003e51b5214
parentc32462d0b5232712f8a2a1d6cedb731115ba6f7b
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