summaryrefslogtreecommitdiffstats
path: root/include/linux/of_platform.h
diff options
context:
space:
mode:
authorJan Glauber <jglauber@cavium.com>2017-05-22 13:09:19 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2017-05-22 18:01:46 +0200
commit9e7b9a25e170722f15ed54f5b963e9867f79195d (patch)
treed071beb9bc6e7cb30a8d7b4fcd5b0587f8f44e5c /include/linux/of_platform.h
parent899e4aad15e93315fa18ab9e9c88904ad237cfa0 (diff)
downloadlinux-stable-9e7b9a25e170722f15ed54f5b963e9867f79195d.tar.gz
linux-stable-9e7b9a25e170722f15ed54f5b963e9867f79195d.tar.bz2
linux-stable-9e7b9a25e170722f15ed54f5b963e9867f79195d.zip
mmc: cavium: Prevent crash with incomplete DT
In case the DT specifies neither a regulator nor a gpio for the shared power the driver will crash accessing the regulator. Prevent the crash by checking the regulator before use. Use mmc_regulator_get_supply() instead of open coding the same logic. Signed-off-by: Jan Glauber <jglauber@cavium.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/of_platform.h')
0 files changed, 0 insertions, 0 deletions