Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d4be2f5 authored by Heiko Stübner's avatar Heiko Stübner Committed by Mark Brown
Browse files

regulator: gpio-regulator: do not pass drvdata pointer as reference



Commit c172708d (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: default avatarHeiko Stuebner <heiko@sntech.de>
Acked-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 0c09d315
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {