summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/max1586.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-25 12:19:27 +0100
committerMark Brown <broonie@linaro.org>2014-02-25 13:27:59 +0100
commitbf7f882b1ecef99eedfe36c214458fd457cf7d86 (patch)
tree3d583b464db48ed78c480a924e12789e9423758a /drivers/regulator/max1586.c
parentregulator: mc13xxx: Use of_get_child_by_name (diff)
downloadlinux-bf7f882b1ecef99eedfe36c214458fd457cf7d86.tar.xz
linux-bf7f882b1ecef99eedfe36c214458fd457cf7d86.zip
regulator: mc13xxx: Fix NULL pointer error in non-DT mode
Add a check to avoid NULL pointer dereference error when booted in non-DT mode. While at it also remove the additional of_node_get which is no longer needed for of_get_child_by_name and fix the node pointer. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Reported-by: Philippe Rétornaz <philippe.retornaz@epfl.ch> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/max1586.c')
0 files changed, 0 insertions, 0 deletions