regulator: Appease smatch in regulator_register()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 11 Apr 2012 09:19:12 +0000 (10:19 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 11 Apr 2012 09:19:12 +0000 (10:19 +0100)
commit32c8fad438200b523ec44a49b40cb8ffdf715f7c
tree5470d156542e081920e5ff468da3121918eca3e6
parent9eb0c4218aa444f863e7f54909351d5b4f0fac06
regulator: Appease smatch in regulator_register()

We don't support missing configs at all so segfaulting isn't that bad
but since we've got checks in the code move the dereference after them.

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