spi: pic32: Fix checking return value of devm_ioremap_resource
authorAxel Lin <axel.lin@ingics.com>
Wed, 27 Apr 2016 08:19:26 +0000 (16:19 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 29 Apr 2016 11:34:20 +0000 (12:34 +0100)
commit866e48b0994c6338e6aa4ae7c413b5888ab432d1
tree32fab7a1b816e9d5d41d3415507af8e2db680abb
parent2452ee25255af95d122ff66ea390facb67a61fc3
spi: pic32: Fix checking return value of devm_ioremap_resource

devm_ioremap_resource() returns ERR_PTR on error.
Also remove the redundant dev_err message, the implementation of
devm_ioremap_resource() already print error messages on error paths.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pic32.c