Files
linux/drivers/mmc/host
Jisheng Zhang 5d37544fb1 mmc: sdhci-pxav3: fix setting of pdata->clk_delay_cycles
commit 14460dbaf7 upstream.

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>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-06 14:40:49 -08:00
..
2012-11-28 12:28:18 -08:00
2012-11-28 12:28:18 -08:00
2012-11-28 12:28:18 -08:00
2012-11-28 12:28:18 -08:00
2012-11-28 12:28:18 -08:00
2012-11-28 12:28:18 -08:00
2009-03-24 21:30:03 +01:00
2012-11-28 12:28:18 -08:00
2009-10-01 16:11:15 -07:00
2012-11-28 12:28:18 -08:00
2012-11-28 12:28:18 -08:00
2012-12-06 13:55:03 -05:00
2012-11-28 12:28:18 -08:00
2007-07-26 01:53:31 +02:00