[PATCH] EDAC: use sysbus_message in e752x code
authorDave Peterson <dsp@llnl.gov>
Sun, 26 Mar 2006 09:38:54 +0000 (01:38 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:57:08 +0000 (08:57 -0800)
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: David S. Peterson <dsp@llnl.gov>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/edac/e752x_edac.c

index 265cce72497c4cf5778c3723d1e9728bfd12fb02..66572c5323ad1a9490097752fc6899708805eddd 100644 (file)
@@ -472,8 +472,7 @@ static inline void membuf_error(u8 errors, int *error_found, int handle_error)
                do_membuf_error(errors);
 }
 
-#if 0
-char *sysbus_message[10] = {
+static char *sysbus_message[10] = {
        "Addr or Request Parity",
        "Data Strobe Glitch",
        "Addr Strobe Glitch",
@@ -484,7 +483,6 @@ char *sysbus_message[10] = {
        "Memory Parity",
        "IO Subsystem Parity"
 };
-#endif  /*  0  */
 
 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++) {
                if (errors & (1 << i))
                        e752x_printk(KERN_WARNING, "%sError System Bus %s\n",
-                               fatal_message[fatal], global_message[i]);
+                               fatal_message[fatal], sysbus_message[i]);
        }
 }