can: mcp251x: Fix regulators operation without CONFIG_REGULATOR
authorAlexander Shiyan <shc_work@mail.ru>
Fri, 14 Mar 2014 08:46:20 +0000 (12:46 +0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 17 Mar 2014 08:20:17 +0000 (09:20 +0100)
commit76aeec83e448478838eec868066dda33049d1288
tree2210e0cf43d823054b1104b71a9db4058004619b
parent3e66d0138c05d9792f458b96581afdb314bc66d6
can: mcp251x: Fix regulators operation without CONFIG_REGULATOR

If CONFIG_REGULATOR is not set, devm_regulator_get() returns NULL,
so use IS_ERR_OR_NULL() macro for checks.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/mcp251x.c