]> git.karo-electronics.de Git - karo-tx-linux.git/commit
regulator: tps65090: Fix tps65090 crash on Tegra Dalmore
authorDoug Anderson <dianders@chromium.org>
Thu, 1 May 2014 18:50:16 +0000 (11:50 -0700)
committerMark Brown <broonie@linaro.org>
Thu, 1 May 2014 19:04:02 +0000 (12:04 -0700)
commit7b9014948eefe01d9eea8945aa48f9f307ed7298
tree03fe6e24730378ef3f48b7e4552a4eb1739d11ad
parented11f1ead54bf0398a4303b51125622113c9c9e1
regulator: tps65090: Fix tps65090 crash on Tegra Dalmore

The patch (60e91b5 regulator: tps65090: Allow setting the overcurrent
wait time) introduced a crash on Tegra Dalmore.  On Dalmore the device
tree doesn't have an entry for all of the FETs so it leaves tps_pdata
NULL in some cases.  Add a check for NULL like the rest of the code
does.

Reported-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/tps65090-regulator.c