]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: da9063: Use IS_ERR to check return value of regulator_register()
authorAxel Lin <axel.lin@ingics.com>
Fri, 30 Aug 2013 12:08:42 +0000 (20:08 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 30 Aug 2013 14:24:42 +0000 (15:24 +0100)
commit0f33b1c085e946b1674febb3ae27d2ee817305b8
treed488585df417d6cb0d46d4950607a4adf1097395
parent752f347854b6663d5d3286f134de56595eb6b62c
regulator: da9063: Use IS_ERR to check return value of regulator_register()

regulator_register() does not return NULL, it returns ERR_PTR on error.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/da9063-regulator.c