diff options
-rw-r--r-- | drivers/firewire/fw-cdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/fw-cdev.c b/drivers/firewire/fw-cdev.c index 3c075b2eedf9..ead5c7b06ec1 100644 --- a/drivers/firewire/fw-cdev.c +++ b/drivers/firewire/fw-cdev.c | |||
@@ -180,7 +180,7 @@ static int dequeue_event(struct client *client, | |||
180 | return -ENODEV; | 180 | return -ENODEV; |
181 | 181 | ||
182 | spin_lock_irqsave(&client->lock, flags); | 182 | spin_lock_irqsave(&client->lock, flags); |
183 | event = container_of(client->event_list.next, struct event, link); | 183 | event = list_first_entry(&client->event_list, struct event, link); |
184 | list_del(&event->link); | 184 | list_del(&event->link); |
185 | spin_unlock_irqrestore(&client->lock, flags); | 185 | spin_unlock_irqrestore(&client->lock, flags); |
186 | 186 | ||