Skip to content

Commit

Permalink
regulator: Fix build of ab8500
Browse files Browse the repository at this point in the history
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Apr 10, 2012
1 parent c172708 commit ac97c62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/regulator/ab8500.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ac97c62

Please sign in to comment.