regulator: Fix build of ab8500
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 10 Apr 2012 08:36:34 +0000 (09:36 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 10 Apr 2012 08:36:34 +0000 (09:36 +0100)
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/ab8500.c

index 93feadaf40c0fc4d2091a813841eaa9453238c02..d1563907d3c8e482cffbb5ed05e2aeba79f1c152 100644 (file)
@@ -780,9 +780,9 @@ static __devinit int ab8500_regulator_probe(struct platform_device *pdev)
                info = &ab8500_regulator_info[i];
                info->dev = &pdev->dev;
 
-               config->dev = &pdev->dev;
-               config->init_data = &pdata->regulator[i];
-               config->driver_data = info;
+               config.dev = &pdev->dev;
+               config.init_data = &pdata->regulator[i];
+               config.driver_data = info;
 
                /* fix for hardware before ab8500v2.0 */
                if (abx500_get_chip_id(info->dev) < 0x20) {