regulator: Fix checking return value of create_regulator
authorAxel Lin <axel.lin@gmail.com>
Thu, 29 Dec 2011 09:03:20 +0000 (17:03 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 29 Dec 2011 10:40:19 +0000 (10:40 +0000)
commit32c78de8f17369def492ea3ddd785f0cc140af02
treed1d57f47ae01b33c929d8425ceb03893d3d6e3ea
parentbcda432194fc7c4a2dbe9d7146f00b4b21e66c8c
regulator: Fix checking return value of create_regulator

create_regulator() returns NULL on fail.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c