diff options
author | Afzal Mohammed <afzal@ti.com> | 2012-08-19 18:29:45 +0530 |
---|---|---|
committer | Afzal Mohammed <afzal@ti.com> | 2012-10-15 14:41:45 +0530 |
commit | 1b47ca1a127925acd73381edb8d1d462014bff1f (patch) | |
tree | 2921dbbb6b58acc0531a4df0948fe21bb21ab128 /arch/arm/mach-omap2/gpmc.c | |
parent | 757ef79188657087f96f6f12c003b682860fede2 (diff) | |
download | op-kernel-dev-1b47ca1a127925acd73381edb8d1d462014bff1f.zip op-kernel-dev-1b47ca1a127925acd73381edb8d1d462014bff1f.tar.gz |
ARM: OMAP2+: gpmc: remove cs# in sync clk div calc
Divider value for a certain sync clk is determined solely
based on gpmc fclk. CS# does not have any role here, thus
remove presence of CS# in clock divider calculation API.
Signed-off-by: Afzal Mohammed <afzal@ti.com>
Reviewed-by: Jon Hunter <jon-hunter@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/gpmc.c')
-rw-r--r-- | arch/arm/mach-omap2/gpmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 5ac5cf3..91af5ae 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -288,7 +288,7 @@ static int set_gpmc_timing_reg(int cs, int reg, int st_bit, int end_bit, return -1 #endif -int gpmc_cs_calc_divider(int cs, unsigned int sync_clk) +int gpmc_calc_divider(unsigned int sync_clk) { int div; u32 l; @@ -308,7 +308,7 @@ int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t) int div; u32 l; - div = gpmc_cs_calc_divider(cs, t->sync_clk); + div = gpmc_calc_divider(t->sync_clk); if (div < 0) return div; |