can: c_can: checking IS_ERR() instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 1 Aug 2014 08:53:44 +0000 (11:53 +0300)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 21 Aug 2014 08:49:59 +0000 (10:49 +0200)
commit37b75a3aa8ec7031df75219fe2f8e5e9b7be398f
treec52157f42c34cf3b271b9cd10a48e6d2422b4153
parent9e37bc6c635a85e0ae3067f19d6f84e1c4516a6c
can: c_can: checking IS_ERR() instead of NULL

devm_ioremap() returns NULL on error, not an ERR_PTR().

Fixes: 33cf75656923 ('can: c_can_platform: Fix raminit, use devm_ioremap() instead of devm_ioremap_resource()')

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.11
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can_platform.c