Fix compiler warning in mpc8xxx ddr code
authorKumar Gala <galak@kernel.crashing.org>
Fri, 5 Sep 2008 19:40:29 +0000 (14:40 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 6 Sep 2008 23:26:13 +0000 (01:26 +0200)
commit302e52e0b1d4c7f994991709d0cb6c3ea612cdb5
tree8828ebe561992f114a67a31c89c4a601f9a96c16
parentd1e2319414ea5218ba801163e4530ecf2dfcbf36
Fix compiler warning in mpc8xxx ddr code

ctrl_regs.c: In function 'compute_fsl_memctl_config_regs':
ctrl_regs.c:523: warning: 'caslat' may be used uninitialized in this function
ctrl_regs.c:523: note: 'caslat' was declared here

Add a warning in DDR1 case if cas_latency isn't a value we know about.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
cpu/mpc8xxx/ddr/ctrl_regs.c