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)
commit0a62d03b4844988c5477f13bd17c3553f816ce87
tree2179be4814fedc7633f2d0db130d4f00d230e87f
parent7d132055814ef17a6c7b69f342244c410a5e000f
regulator: tps62360: Fix crash in i2c_driver .probe

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>
drivers/regulator/tps62360-regulator.c