From 19c6b5440a66cba44365e511d9794e5e34ae2e4e Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sun, 4 Aug 2013 09:23:28 +0800 Subject: [PATCH] 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-format-patch failed