regulator: tps62360: Fix crash in i2c_driver .probe
authorTuomas Tynkkynen <ttynkkynen@nvidia.com>
Tue, 18 Jun 2013 10:14:41 +0000 (13:14 +0300)
committerMark Brown <broonie@linaro.org>
Tue, 18 Jun 2013 11:45:09 +0000 (12:45 +0100)
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 caused kernel panics due to NULL dereference.

Tested-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

No differences found