diff options
Diffstat (limited to 'drivers/firewire/fw-device.h')
-rw-r--r-- | drivers/firewire/fw-device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firewire/fw-device.h b/drivers/firewire/fw-device.h index 8ef6ec2ca21c..008a7908a865 100644 --- a/drivers/firewire/fw-device.h +++ b/drivers/firewire/fw-device.h | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/cdev.h> | 23 | #include <linux/cdev.h> |
24 | #include <linux/idr.h> | 24 | #include <linux/idr.h> |
25 | #include <linux/rwsem.h> | 25 | #include <linux/rwsem.h> |
26 | #include <linux/spinlock.h> | ||
26 | #include <asm/atomic.h> | 27 | #include <asm/atomic.h> |
27 | 28 | ||
28 | enum fw_device_state { | 29 | enum fw_device_state { |
@@ -64,6 +65,8 @@ struct fw_device { | |||
64 | bool cmc; | 65 | bool cmc; |
65 | struct fw_card *card; | 66 | struct fw_card *card; |
66 | struct device device; | 67 | struct device device; |
68 | /* to prevent deadlocks, never take this lock with card->lock held */ | ||
69 | spinlock_t client_list_lock; | ||
67 | struct list_head client_list; | 70 | struct list_head client_list; |
68 | u32 *config_rom; | 71 | u32 *config_rom; |
69 | size_t config_rom_length; | 72 | size_t config_rom_length; |