regulator/ab8500: move dereference below the check for NULL
authorDan Carpenter <error27@gmail.com>
Sat, 14 Aug 2010 09:03:16 +0000 (11:03 +0200)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 1 Sep 2010 11:59:33 +0000 (12:59 +0100)
commitaf54decd6a2b8efa335020afc77254355c4c1bab
treec2c70b39c21c0b402c49a556011fb1081aeebbf6
parent2bfc96a127bc1cc94d26bfaa40159966064f9c8c
regulator/ab8500: move dereference below the check for NULL

I moved the dereference of "ab8500" below the check for NULL.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/ab8500.c