aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-card.c
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-card.c
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-card.c')
-rw-r--r--drivers/firewire/fw-card.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/fw-card.c b/drivers/firewire/fw-card.c
index f94874ce58af..7f5dc43ec131 100644
--- a/drivers/firewire/fw-card.c
+++ b/drivers/firewire/fw-card.c
@@ -302,7 +302,7 @@ fw_card_bm_work(struct work_struct *work)
302 /* Either link_on is false, or we failed to read the 302 /* Either link_on is false, or we failed to read the
303 * config rom. In either case, pick another root. */ 303 * config rom. In either case, pick another root. */
304 new_root_id = card->local_node->node_id; 304 new_root_id = card->local_node->node_id;
305 } else if (root->state != FW_DEVICE_RUNNING) { 305 } else if (atomic_read(&root->state) != FW_DEVICE_RUNNING) {
306 /* If we haven't probed this device yet, bail out now 306 /* If we haven't probed this device yet, bail out now
307 * and let's try again once that's done. */ 307 * and let's try again once that's done. */
308 spin_unlock_irqrestore(&card->lock, flags); 308 spin_unlock_irqrestore(&card->lock, flags);