summaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorSteven Miao <realmz6@gmail.com>2011-11-30 11:42:49 +0800
committerBob Liu <lliubbo@gmail.com>2012-01-09 10:26:15 +0800
commit4dbeccdf7b7573e90b442b6bd896c10c1608e72d (patch)
treebb477db505a6aa456002ef0aa623dd293e75da9b /arch/blackfin
parenta2eff9dd8bca6d03bc3c87790bac3fdb4fe6dbf0 (diff)
downloadop-kernel-dev-4dbeccdf7b7573e90b442b6bd896c10c1608e72d.zip
op-kernel-dev-4dbeccdf7b7573e90b442b6bd896c10c1608e72d.tar.gz
bf54x: get mem size: missing break in switch
Signed-off-by: Steven Miao <realmz6@gmail.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/kernel/setup.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c
index dfa2525..d6102c8 100644
--- a/arch/blackfin/kernel/setup.c
+++ b/arch/blackfin/kernel/setup.c
@@ -828,10 +828,18 @@ static inline int __init get_mem_size(void)
u32 ddrctl = bfin_read_EBIU_DDRCTL1();
int ret = 0;
switch (ddrctl & 0xc0000) {
- case DEVSZ_64: ret = 64 / 8;
- case DEVSZ_128: ret = 128 / 8;
- case DEVSZ_256: ret = 256 / 8;
- case DEVSZ_512: ret = 512 / 8;
+ case DEVSZ_64:
+ ret = 64 / 8;
+ break;
+ case DEVSZ_128:
+ ret = 128 / 8;
+ break;
+ case DEVSZ_256:
+ ret = 256 / 8;
+ break;
+ case DEVSZ_512:
+ ret = 512 / 8;
+ break;
}
switch (ddrctl & 0x30000) {
case DEVWD_4: ret *= 2;
OpenPOWER on IntegriCloud