From: Heiko Stübner Date: Sun, 3 Jun 2012 19:30:33 +0000 (+0200) Subject: regulator: gpio-regulator: do not pass drvdata pointer as reference X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7d4be2f5ad223942577c2319153b86592f3da5b2;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Acked-by: Axel Lin Signed-off-by: Mark Brown --- 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)) {