commit | 76aeec83e448478838eec868066dda33049d1288 | [log] [tgz] |
---|---|---|
author | Alexander Shiyan <shc_work@mail.ru> | Fri Mar 14 12:46:20 2014 +0400 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Mon Mar 17 09:20:17 2014 +0100 |
tree | 2210e0cf43d823054b1104b71a9db4058004619b | |
parent | 3e66d0138c05d9792f458b96581afdb314bc66d6 [diff] |
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>