From 641f8791f031d6133e5c3e9ce036b3e942416e9d Mon Sep 17 00:00:00 2001 From: Stefan Richter Date: Sat, 27 Jan 2007 10:34:55 +0100 Subject: firewire: use atomic type for fw_device.state Signed-off-by: Stefan Richter --- drivers/firewire/fw-device.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/firewire/fw-device.h') diff --git a/drivers/firewire/fw-device.h b/drivers/firewire/fw-device.h index 5399b48f553..402a785ceed 100644 --- a/drivers/firewire/fw-device.h +++ b/drivers/firewire/fw-device.h @@ -24,6 +24,7 @@ #include #include +#include enum fw_device_state { FW_DEVICE_INITIALIZING, @@ -32,7 +33,7 @@ enum fw_device_state { }; struct fw_device { - int state; + atomic_t state; struct fw_node *node; int node_id; int generation; -- cgit v1.2.3-70-g09d2