From: Axel Lin Date: Sun, 4 Aug 2013 01:23:28 +0000 (+0800) Subject: regulator: 88pm800: Fix checking whether num_regulator is valid X-Git-Tag: v3.12-rc1~191^2~17^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19c6b5440a66cba44365e511d9794e5e34ae2e4e;p=pandora-kernel.git regulator: 88pm800: Fix checking whether num_regulator is valid The code to check whether num_regulator is valid is wrong because it should iterate all array entries rather than break from the for loop if pdata->regulators[i] is NULL. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed