]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: tps80031: Use IS_ERR to check return value of regulator_register()
authorAxel Lin <axel.lin@ingics.com>
Fri, 25 Jan 2013 13:29:41 +0000 (21:29 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 26 Jan 2013 07:40:36 +0000 (15:40 +0800)
commit536a2e9838b1e552c1a3b5901456fa54486d0461
tree323b1dde4f0938b2a975ab873e96d9028908767c
parent770407bf7f28b6a32c409067a0c6f94c462ff018
regulator: tps80031: 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@opensource.wolfsonmicro.com>
drivers/regulator/tps80031-regulator.c