diff options
author | Stefan Roese <sr@denx.de> | 2010-10-06 18:50:59 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-06 22:35:49 +0200 |
commit | e64901c01a891963c00eafd64c5891b1286240a3 (patch) | |
tree | e2e6693f9dca6707dd188ef21b5e2a41fa1a3d9c /common/serial.c | |
parent | 60f7da1f421cbbf6f54f3e9cde4e25b0a23a928a (diff) | |
download | u-boot-e64901c01a891963c00eafd64c5891b1286240a3.zip u-boot-e64901c01a891963c00eafd64c5891b1286240a3.tar.gz u-boot-e64901c01a891963c00eafd64c5891b1286240a3.tar.bz2 |
serial.c: Fix build breakage introduced with commit e3c78c9b
This patch fixes the compilation problem introduced with commit
e3c78c9b [ppc4xx: Remove now unused CONFIG_UART1_CONSOLE]:
-> ./MAKEALL TB5200
Configuring for TB5200 board...
serial.c: In function '__default_serial_console':
serial.c:94: warning: no return statement in function returning non-void
I accidentally removed an "#else" line. This patch adds it back.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'common/serial.c')
-rw-r--r-- | common/serial.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/serial.c b/common/serial.c index 25b235a..7bebc12 100644 --- a/common/serial.c +++ b/common/serial.c @@ -54,6 +54,7 @@ struct serial_device *__default_serial_console (void) #else #error "Bad CONFIG_CONS_INDEX." #endif +#else return &serial0_device; #endif #elif defined(CONFIG_MPC512X) |