From: Beniamino Galvani Date: Sat, 5 Jul 2014 13:20:53 +0000 (+0200) Subject: regulator: act8865: set correct number of regulators in pdata X-Git-Tag: omap-for-v3.17/fixes-against-rc2~156^2~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=732714d0da4f3273e4b9a9dbe3e7556ea1188e36;p=pandora-kernel.git regulator: act8865: set correct number of regulators in pdata act8865_pdata_from_dt() populates the array pdata->regulators with all the regulators and then assigns the field init_data only for the ones actually found in the DT. The patch changes the value assigned to pdata->num_regulators to match the size of the array. Signed-off-by: Beniamino Galvani Tested-by: Wenyou Yang Reviewed-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed