]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37da6948117638f98f6a26b2625d0666728b4dfe
tree2179be4814fedc7633f2d0db130d4f00d230e87f
parent16fda1b0faf15e238c0a5043370ec308ead91648
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