diff options
author | Hitoshi Mitake <h.mitake@gmail.com> | 2008-04-29 04:03:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:26 -0400 |
commit | c3c52bce6993c6d37af2c2de9b482a7013d646a7 (patch) | |
tree | dc03a88574a0029af51aad044c449cb90e52247f /drivers/edac/i82860_edac.c | |
parent | 1a45027d1afd7e85254b5ef8535e93ce3d588cf4 (diff) |
edac: fix module initialization on several modules 2nd time
I implemented opstate_init() as a inline function in linux/edac.h.
added calling opstate_init() to:
i82443bxgx_edac.c
i82860_edac.c
i82875p_edac.c
i82975x_edac.c
I wrote a fixed patch of
edac-fix-module-initialization-on-several-modules.patch,
and tested building 2.6.25-rc7 with applying this. It was succeed.
I think the patch is now correct.
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Hitoshi Mitake <h.mitake@gmail.com>
Signed-off-by: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/edac/i82860_edac.c')
-rw-r--r-- | drivers/edac/i82860_edac.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/edac/i82860_edac.c b/drivers/edac/i82860_edac.c index f5ecd2c4d813..c0088ba9672b 100644 --- a/drivers/edac/i82860_edac.c +++ b/drivers/edac/i82860_edac.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/pci.h> | 14 | #include <linux/pci.h> |
15 | #include <linux/pci_ids.h> | 15 | #include <linux/pci_ids.h> |
16 | #include <linux/slab.h> | 16 | #include <linux/slab.h> |
17 | #include <linux/edac.h> | ||
17 | #include "edac_core.h" | 18 | #include "edac_core.h" |
18 | 19 | ||
19 | #define I82860_REVISION " Ver: 2.0.2 " __DATE__ | 20 | #define I82860_REVISION " Ver: 2.0.2 " __DATE__ |
@@ -294,6 +295,9 @@ static int __init i82860_init(void) | |||
294 | 295 | ||
295 | debugf3("%s()\n", __func__); | 296 | debugf3("%s()\n", __func__); |
296 | 297 | ||
298 | /* Ensure that the OPSTATE is set correctly for POLL or NMI */ | ||
299 | opstate_init(); | ||
300 | |||
297 | if ((pci_rc = pci_register_driver(&i82860_driver)) < 0) | 301 | if ((pci_rc = pci_register_driver(&i82860_driver)) < 0) |
298 | goto fail0; | 302 | goto fail0; |
299 | 303 | ||
@@ -345,3 +349,6 @@ MODULE_LICENSE("GPL"); | |||
345 | MODULE_AUTHOR("Red Hat Inc. (http://www.redhat.com) " | 349 | MODULE_AUTHOR("Red Hat Inc. (http://www.redhat.com) " |
346 | "Ben Woodard <woodard@redhat.com>"); | 350 | "Ben Woodard <woodard@redhat.com>"); |
347 | MODULE_DESCRIPTION("ECC support for Intel 82860 memory hub controllers"); | 351 | MODULE_DESCRIPTION("ECC support for Intel 82860 memory hub controllers"); |
352 | |||
353 | module_param(edac_op_state, int, 0444); | ||
354 | MODULE_PARM_DESC(edac_op_state, "EDAC Error Reporting state: 0=Poll,1=NMI"); | ||