From: Bob Liu <lliubbo@gmail.com>
To: <linux-kernel@vger.kernel.org>
Cc: <sonic.adi@gmail.com>, <uclinux-dist-devel@blackfin.uclinux.org>,
<vapier@gentoo.org>, Steven Miao <realmz6@gmail.com>,
Bob Liu <lliubbo@gmail.com>
Subject: [PATCH 08/11] bf54x: get mem size: missing break in switch
Date: Mon, 12 Dec 2011 11:28:30 +0800 [thread overview]
Message-ID: <1323660513-9620-8-git-send-email-lliubbo@gmail.com> (raw)
In-Reply-To: <1323660513-9620-1-git-send-email-lliubbo@gmail.com>
From: Steven Miao <realmz6@gmail.com>
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
---
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 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;
--
1.7.0.4
next prev parent reply other threads:[~2011-12-12 3:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-12 3:28 [PATCH 01/11] blackfin: bf533-stamp: fix ad1836 name Bob Liu
2011-12-12 3:28 ` [PATCH 02/11] blackfin: bf533-stamp: add missed patches for new asoc driver Bob Liu
2011-12-12 3:28 ` [PATCH 03/11] blackfin: smp: add suspend and wakeup irq flags Bob Liu
2011-12-12 3:28 ` [PATCH 04/11] blackfin: smp: cleanup smp code Bob Liu
2011-12-12 3:28 ` [PATCH 05/11] blackfin: config: update def config for all boards Bob Liu
2011-12-12 3:28 ` [PATCH 06/11] blackfin: config: update macro SPI_BFIN in board file Bob Liu
2011-12-12 3:28 ` [PATCH 07/11] blackfin: smp: fix msg queue overflow issue Bob Liu
2011-12-12 3:28 ` Bob Liu [this message]
2011-12-12 3:28 ` [PATCH 09/11] serial: bfin-uart: remove unused field for hardware flow control Bob Liu
2011-12-12 3:28 ` [PATCH 10/11] bf537: spi sport driver can support any gpio as its cs pin Bob Liu
2011-12-12 3:28 ` [PATCH 11/11] blackfin: mac: dsa: add vlan mask in board file Bob Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1323660513-9620-8-git-send-email-lliubbo@gmail.com \
--to=lliubbo@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=realmz6@gmail.com \
--cc=sonic.adi@gmail.com \
--cc=uclinux-dist-devel@blackfin.uclinux.org \
--cc=vapier@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome