aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Stübner <[email protected]>2012-06-03 21:30:33 +0200
committerMark Brown <[email protected]>2012-06-04 10:44:18 +0100
commit7d4be2f5ad223942577c2319153b86592f3da5b2 (patch)
treea3d45a53183dd103d54f2f1d5df6e018b278be04
parent0c09d3150902d8ca7e763d508ac1a93701b21321 (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 <[email protected]> Acked-by: Axel Lin <[email protected]> Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--drivers/regulator/gpio-regulator.c2
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)
cfg.dev = &pdev->dev;
cfg.init_data = config->init_data;
- cfg.driver_data = &drvdata;
+ cfg.driver_data = drvdata;
drvdata->dev = regulator_register(&drvdata->desc, &cfg);
if (IS_ERR(drvdata->dev)) {