Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296088
b: refs/heads/master
c: 76c2f6e
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Warren authored and Olof Johansson committed Feb 7, 2012
1 parent 4d2a981 commit 5bf9cd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3391811c4294da42e412ec5f83a251caf05869a4
refs/heads/master: 76c2f6e513b3df8031dda383838da2a3820adbe3
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-tegra/tegra2_emc.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,16 +284,16 @@ static struct tegra_emc_pdata __devinit *tegra_emc_fill_pdata(struct platform_de
pdata->tables = devm_kzalloc(&pdev->dev, sizeof(*pdata->tables),
GFP_KERNEL);

pdata->tables[0].rate = clk_get_rate(c);
pdata->tables[0].rate = clk_get_rate(c) / 2 / 1000;

for (i = 0; i < TEGRA_EMC_NUM_REGS; i++)
pdata->tables[0].regs[i] = emc_readl(emc_reg_addr[i]);

pdata->num_tables = 1;

khz = pdata->tables[0].rate / 1000;
khz = pdata->tables[0].rate;
dev_info(&pdev->dev, "no tables provided, using %ld kHz emc, "
"%ld kHz mem\n", khz, khz/2);
"%ld kHz mem\n", khz * 2, khz);

return pdata;
}
Expand Down

0 comments on commit 5bf9cd9

Please sign in to comment.