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-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/firewire/fw-card.c') 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) /* Either link_on is false, or we failed to read the * config rom. In either case, pick another root. */ new_root_id = card->local_node->node_id; - } else if (root->state != FW_DEVICE_RUNNING) { + } else if (atomic_read(&root->state) != FW_DEVICE_RUNNING) { /* If we haven't probed this device yet, bail out now * and let's try again once that's done. */ spin_unlock_irqrestore(&card->lock, flags); -- cgit v1.2.2