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

Commit 6930db1e authored by Mikko Perttunen's avatar Mikko Perttunen Committed by Mark Brown
Browse files

regulator: tps51632: Get regulator name from i2c_client



Commit "i2c: core: make it possible to match a pure device tree driver"
changed semantics of the i2c probing for device tree devices.
Device tree probed devices now get a NULL i2c_device_id pointer.
This causes the regulator name to be set to NULL and the regulator
registration to fail.

Signed-off-by: default avatarMikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 6ce4eac1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -305,7 +305,7 @@ static int tps51632_probe(struct i2c_client *client,
	}
	}


	tps->dev = &client->dev;
	tps->dev = &client->dev;
	tps->desc.name = id->name;
	tps->desc.name = client->name;
	tps->desc.id = 0;
	tps->desc.id = 0;
	tps->desc.ramp_delay = TPS51632_DEFAULT_RAMP_DELAY;
	tps->desc.ramp_delay = TPS51632_DEFAULT_RAMP_DELAY;
	tps->desc.min_uV = TPS51632_MIN_VOLATGE;
	tps->desc.min_uV = TPS51632_MIN_VOLATGE;