From 9028eab876914adb2003e96a7626d38254703982 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Thu, 10 Mar 2011 17:01:44 +0530 Subject: arm: tegra: cardhu: Cleanup to support multiboards configuration Cleanup in the configuration related to board is done so that it will be easier to add another board configuration on same build configuration. Original-Change-Id: Id030d70e4893b886ee73aaf944450526e7722e7e Reviewed-on: http://git-master/r/22392 Reviewed-by: Laxman Dewangan Tested-by: Laxman Dewangan Reviewed-by: Mohit Singh Tested-by: Mohit Singh Reviewed-by: Mallikarjun Kasoju Reviewed-by: Rakesh Bodla Tested-by: Rakesh Bodla Reviewed-by: Ramachandrudu Kandhala Change-Id: Id737a2668ce13470be80086e3d3764c4f9ac6096 --- drivers/regulator/gpio-switch-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/regulator') diff --git a/drivers/regulator/gpio-switch-regulator.c b/drivers/regulator/gpio-switch-regulator.c index 0c7816aad061..9abd3ab33beb 100755 --- a/drivers/regulator/gpio-switch-regulator.c +++ b/drivers/regulator/gpio-switch-regulator.c @@ -30,7 +30,7 @@ #include #include #include -#include +#include struct gpio_switch_regulator { struct regulator_desc reg_desc; @@ -236,7 +236,7 @@ static int __devinit gpio_switch_regulator_probe(struct platform_device *pdev) for (rcount = 0; rcount < pdata->num_subdevs; ++rcount) { ri = &gswitch_reg[rcount]; - sdata = &pdata->subdevs[rcount]; + sdata = pdata->subdevs[rcount]; /* Initialize the regulator parameter */ ri->reg_desc.name = sdata->regulator_name; -- cgit v1.2.3