diff options
author | Dave Jiang <djiang@mvista.com> | 2007-07-19 04:49:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:54 -0400 |
commit | 66ee2f940ac8ab25f0c43a1e717d25dc46bfe74d (patch) | |
tree | 929e24aefc27c95e13641a8f4052d9093a1ef34a /drivers/edac/edac_stub.c | |
parent | 91b99041c1d577ded1da599ddc28cec2e07253cf (diff) |
drivers/edac: mod assert_error check
Change error check and clear variable from an atomic to an int
Signed-off-by: Dave Jiang <djiang@mvista.com>
Signed-off-by: Douglas 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/edac_stub.c')
-rw-r--r-- | drivers/edac/edac_stub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/edac_stub.c b/drivers/edac/edac_stub.c index 91a038d2f652..3d259c231507 100644 --- a/drivers/edac/edac_stub.c +++ b/drivers/edac/edac_stub.c | |||
@@ -20,7 +20,7 @@ EXPORT_SYMBOL(edac_op_state); | |||
20 | atomic_t edac_handlers = ATOMIC_INIT(0); | 20 | atomic_t edac_handlers = ATOMIC_INIT(0); |
21 | EXPORT_SYMBOL(edac_handlers); | 21 | EXPORT_SYMBOL(edac_handlers); |
22 | 22 | ||
23 | atomic_t edac_err_assert = ATOMIC_INIT(0); | 23 | int edac_err_assert = 0; |
24 | EXPORT_SYMBOL(edac_err_assert); | 24 | EXPORT_SYMBOL(edac_err_assert); |
25 | 25 | ||
26 | inline int edac_handler_set(void) | 26 | inline int edac_handler_set(void) |
@@ -37,6 +37,6 @@ EXPORT_SYMBOL(edac_handler_set); | |||
37 | */ | 37 | */ |
38 | inline void edac_atomic_assert_error(void) | 38 | inline void edac_atomic_assert_error(void) |
39 | { | 39 | { |
40 | atomic_set(&edac_err_assert, 1); | 40 | edac_err_assert++; |
41 | } | 41 | } |
42 | EXPORT_SYMBOL(edac_atomic_assert_error); | 42 | EXPORT_SYMBOL(edac_atomic_assert_error); |