From: Axel Lin Date: Fri, 8 Jun 2012 04:03:04 +0000 (+0800) Subject: regulator: max77686: Check pdata->num_regulators earlier X-Git-Tag: v3.6-rc1~157^2^2~116 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab0d1cbe55014ac65cfc317f8ef2cd5fa4b7d4da;p=pandora-kernel.git regulator: max77686: Check pdata->num_regulators earlier If this driver only works when pdata->num_regulators == MAX77686_REGULATORS, let's check it earlier. Also remove unused num_regulators from struct max77686_data. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed