diff options
author | Heiko Stübner <heiko@sntech.de> | 2012-06-03 15:30:33 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-04 05:44:18 -0400 |
commit | 7d4be2f5ad223942577c2319153b86592f3da5b2 (patch) | |
tree | a3d45a53183dd103d54f2f1d5df6e018b278be04 /drivers/regulator | |
parent | 0c09d3150902d8ca7e763d508ac1a93701b21321 (diff) |
regulator: gpio-regulator: do not pass drvdata pointer as reference
Commit c172708d38a4 (regulator: core: Use a struct to pass in
regulator runtime configuration) added the drvdata pointer
only per reference to the new config array in the gpio-regulator.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/gpio-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/gpio-regulator.c b/drivers/regulator/gpio-regulator.c index 9997d7aaca84..ebe2b5c2e2df 100644 --- a/drivers/regulator/gpio-regulator.c +++ b/drivers/regulator/gpio-regulator.c | |||
@@ -286,7 +286,7 @@ static int __devinit gpio_regulator_probe(struct platform_device *pdev) | |||
286 | 286 | ||
287 | cfg.dev = &pdev->dev; | 287 | cfg.dev = &pdev->dev; |
288 | cfg.init_data = config->init_data; | 288 | cfg.init_data = config->init_data; |
289 | cfg.driver_data = &drvdata; | 289 | cfg.driver_data = drvdata; |
290 | 290 | ||
291 | drvdata->dev = regulator_register(&drvdata->desc, &cfg); | 291 | drvdata->dev = regulator_register(&drvdata->desc, &cfg); |
292 | if (IS_ERR(drvdata->dev)) { | 292 | if (IS_ERR(drvdata->dev)) { |