diff options
author | Stefano Babic <sbabic@denx.de> | 2011-05-17 13:45:41 +0200 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-05-23 08:36:46 +0200 |
commit | d43458d23783eabcc770d1012f5656c6241ec0f8 (patch) | |
tree | 7afe765bbb67a2707ac2c2e02b1e685fddf4b1fc /arch/arm/cpu/arm1136 | |
parent | b302b151935fbe65ae46faa5261db98c35dc15fb (diff) | |
download | u-boot-imx-d43458d23783eabcc770d1012f5656c6241ec0f8.zip u-boot-imx-d43458d23783eabcc770d1012f5656c6241ec0f8.tar.gz u-boot-imx-d43458d23783eabcc770d1012f5656c6241ec0f8.tar.bz2 |
MX31: Make get_reset_cause() static and drop unreachable code
get_reset_cause() should not be exported. Drop code in the function
after return statement that can generate warnings due to unreachable code.
Signed-off-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'arch/arm/cpu/arm1136')
-rw-r--r-- | arch/arm/cpu/arm1136/mx31/generic.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/cpu/arm1136/mx31/generic.c b/arch/arm/cpu/arm1136/mx31/generic.c index fccd2cd..4ebf38d 100644 --- a/arch/arm/cpu/arm1136/mx31/generic.c +++ b/arch/arm/cpu/arm1136/mx31/generic.c @@ -133,7 +133,7 @@ u32 get_cpu_rev(void) return srev | 0x8000; } -char *get_reset_cause(void) +static char *get_reset_cause(void) { /* read RCSR register from CCM module */ struct clock_control_regs *ccm = @@ -144,16 +144,12 @@ char *get_reset_cause(void) switch (cause) { case 0x0000: return "POR"; - break; case 0x0001: return "RST"; - break; case 0x0002: return "WDOG"; - break; case 0x0006: return "JTAG"; - break; default: return "unknown reset"; } |