Skip to content

Commit

Permalink
regulator: tps51632: Get regulator name from i2c_client
Browse files Browse the repository at this point in the history
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: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Mikko Perttunen authored and Mark Brown committed Nov 24, 2013
1 parent 6ce4eac commit 6930db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/tps51632-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static int tps51632_probe(struct i2c_client *client,
}

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

0 comments on commit 6930db1

Please sign in to comment.