mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
omap: fix a gpmc nand problem
If gpmc_t isn't given, we don't need to set timing for gpmc, or it will cause a Oops. Signed-off-by: Stanley.Miao <stanley.miao@windriver.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
5241b6b3bf
commit
11e1ef2d10
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ static int omap2_nand_gpmc_retime(void)
|
||||||
struct gpmc_timings t;
|
struct gpmc_timings t;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
if (!gpmc_nand_data->gpmc_t)
|
||||||
|
return 0;
|
||||||
|
|
||||||
memset(&t, 0, sizeof(t));
|
memset(&t, 0, sizeof(t));
|
||||||
t.sync_clk = gpmc_round_ns_to_ticks(gpmc_nand_data->gpmc_t->sync_clk);
|
t.sync_clk = gpmc_round_ns_to_ticks(gpmc_nand_data->gpmc_t->sync_clk);
|
||||||
t.cs_on = gpmc_round_ns_to_ticks(gpmc_nand_data->gpmc_t->cs_on);
|
t.cs_on = gpmc_round_ns_to_ticks(gpmc_nand_data->gpmc_t->cs_on);
|
||||||
|
|
Loading…
Reference in a new issue