aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-device.h
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2007-01-27 04:34:55 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-03-09 16:02:49 -0500
commit641f8791f031d6133e5c3e9ce036b3e942416e9d (patch)
treef65db59e8cedd09da36a956234a93b73e42aab89 /drivers/firewire/fw-device.h
parent0edeefd99fd31f74432aba5860f6ebcbde874dbf (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.h3
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
28enum fw_device_state { 29enum fw_device_state {
29 FW_DEVICE_INITIALIZING, 30 FW_DEVICE_INITIALIZING,
@@ -32,7 +33,7 @@ enum fw_device_state {
32}; 33};
33 34
34struct fw_device { 35struct 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;