diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-01-27 04:34:55 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-03-09 16:02:49 -0500 |
commit | 641f8791f031d6133e5c3e9ce036b3e942416e9d (patch) | |
tree | f65db59e8cedd09da36a956234a93b73e42aab89 /drivers/firewire/fw-device.h | |
parent | 0edeefd99fd31f74432aba5860f6ebcbde874dbf (diff) |
firewire: use atomic type for fw_device.state
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-device.h')
-rw-r--r-- | drivers/firewire/fw-device.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/firewire/fw-device.h b/drivers/firewire/fw-device.h index 5399b48f5538..402a785ceedb 100644 --- a/drivers/firewire/fw-device.h +++ b/drivers/firewire/fw-device.h | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include <linux/fs.h> | 25 | #include <linux/fs.h> |
26 | #include <linux/cdev.h> | 26 | #include <linux/cdev.h> |
27 | #include <asm/atomic.h> | ||
27 | 28 | ||
28 | enum fw_device_state { | 29 | enum fw_device_state { |
29 | FW_DEVICE_INITIALIZING, | 30 | FW_DEVICE_INITIALIZING, |
@@ -32,7 +33,7 @@ enum fw_device_state { | |||
32 | }; | 33 | }; |
33 | 34 | ||
34 | struct fw_device { | 35 | struct fw_device { |
35 | int state; | 36 | atomic_t state; |
36 | struct fw_node *node; | 37 | struct fw_node *node; |
37 | int node_id; | 38 | int node_id; |
38 | int generation; | 39 | int generation; |