regulator: da9052: fix bug in device tree iteration loop
authorYing-Chun Liu (PaulLiu) <paulliu@debian.org>
Mon, 7 May 2012 07:57:23 +0000 (15:57 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 7 May 2012 11:51:36 +0000 (12:51 +0100)
commit8e8a507c2427c960c5d1fe58a250635b35f3acdc
tree736f0579c4a72f1d90c04db806d6cac4a91a3e5a
parent9a50dba509251dfce7895a5990cb938f383a6273
regulator: da9052: fix bug in device tree iteration loop

The driver of da9052 is buggy due to the iteration loop of device tree.
This patch fix the loop condition to make the driver work with device tree.

Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/da9052-regulator.c