Commit e009356f authored by Dave Peterson's avatar Dave Peterson Committed by Linus Torvalds

[PATCH] EDAC: use sysbus_message in e752x code

Patch from Dave Jiang <djiang@mvista.com>: Fix EDAC e752x driver so it
outputs sysbus-specific error message when sysbus error detected.
Signed-off-by: default avatarDavid S. Peterson <dsp@llnl.gov>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f3479816
...@@ -472,8 +472,7 @@ static inline void membuf_error(u8 errors, int *error_found, int handle_error) ...@@ -472,8 +472,7 @@ static inline void membuf_error(u8 errors, int *error_found, int handle_error)
do_membuf_error(errors); do_membuf_error(errors);
} }
#if 0 static char *sysbus_message[10] = {
char *sysbus_message[10] = {
"Addr or Request Parity", "Addr or Request Parity",
"Data Strobe Glitch", "Data Strobe Glitch",
"Addr Strobe Glitch", "Addr Strobe Glitch",
...@@ -484,7 +483,6 @@ char *sysbus_message[10] = { ...@@ -484,7 +483,6 @@ char *sysbus_message[10] = {
"Memory Parity", "Memory Parity",
"IO Subsystem Parity" "IO Subsystem Parity"
}; };
#endif /* 0 */
static void do_sysbus_error(int fatal, u32 errors) static void do_sysbus_error(int fatal, u32 errors)
{ {
...@@ -493,7 +491,7 @@ static void do_sysbus_error(int fatal, u32 errors) ...@@ -493,7 +491,7 @@ static void do_sysbus_error(int fatal, u32 errors)
for (i = 0; i < 10; i++) { for (i = 0; i < 10; i++) {
if (errors & (1 << i)) if (errors & (1 << i))
e752x_printk(KERN_WARNING, "%sError System Bus %s\n", e752x_printk(KERN_WARNING, "%sError System Bus %s\n",
fatal_message[fatal], global_message[i]); fatal_message[fatal], sysbus_message[i]);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment