summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc/card.h
diff options
context:
space:
mode:
authorJisheng Zhang2015-01-28 12:54:12 +0100
committerUlf Hansson2015-01-29 11:10:11 +0100
commit14460dbaf7a5a0488963fdb8232ad5c8a8cca7b7 (patch)
tree9c6c04d64ba6350550e5e0e4afcc1cf8f535b795 /include/linux/mmc/card.h
parentmmc: dw_mmc: rockchip: remove incorrect __exit_p() (diff)
downloadkernel-qcow2-linux-14460dbaf7a5a0488963fdb8232ad5c8a8cca7b7.tar.gz
kernel-qcow2-linux-14460dbaf7a5a0488963fdb8232ad5c8a8cca7b7.tar.xz
kernel-qcow2-linux-14460dbaf7a5a0488963fdb8232ad5c8a8cca7b7.zip
mmc: sdhci-pxav3: fix setting of pdata->clk_delay_cycles
Current code checks "clk_delay_cycles > 0" to know whether the optional "mrvl,clk_delay_cycles" is set or not. But of_property_read_u32() doesn't touch clk_delay_cycles if the property is not set. And type of clk_delay_cycles is u32, so we may always set pdata->clk_delay_cycles as a random value. This patch fix this problem by check the return value of of_property_read_u32() to know whether the optional clk-delay-cycles is set or not. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Cc: <stable@vger.kernel.org> # v3.6+ Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc/card.h')
0 files changed, 0 insertions, 0 deletions