regulator: gpio-regulator: do not pass drvdata pointer as reference
From: Heiko Stuebner <heiko@...> Date: Sun, 3 Jun 2012 16:32:33 +0200
Commit-Message
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@...>
Patch-Comment
drivers/regulator/gpio-regulator.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Statistics
- 1 lines added
- 1 lines removed
Changes
---------------------- drivers/regulator/gpio-regulator.c ----------------------
index 9997d7a..ebe2b5c 100644
@@ -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;
drvdata->dev = regulator_register(&drvdata->desc, &cfg);
if (IS_ERR(drvdata->dev)) {