diff options
author | Steven Miao <realmz6@gmail.com> | 2011-11-30 11:42:49 +0800 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-01-09 10:26:15 +0800 |
commit | 4dbeccdf7b7573e90b442b6bd896c10c1608e72d (patch) | |
tree | bb477db505a6aa456002ef0aa623dd293e75da9b /arch | |
parent | a2eff9dd8bca6d03bc3c87790bac3fdb4fe6dbf0 (diff) | |
download | blackbird-op-linux-4dbeccdf7b7573e90b442b6bd896c10c1608e72d.tar.gz blackbird-op-linux-4dbeccdf7b7573e90b442b6bd896c10c1608e72d.zip |
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')
-rw-r--r-- | arch/blackfin/kernel/setup.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index dfa2525a442d..d6102c86d037 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; |