aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire/core.h')
-rw-r--r--drivers/firewire/core.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/firewire/core.h b/drivers/firewire/core.h
index 6052816be353..7ff6e7585152 100644
--- a/drivers/firewire/core.h
+++ b/drivers/firewire/core.h
@@ -96,6 +96,20 @@ int fw_core_initiate_bus_reset(struct fw_card *card, int short_reset);
96int fw_compute_block_crc(u32 *block); 96int fw_compute_block_crc(u32 *block);
97void fw_schedule_bm_work(struct fw_card *card, unsigned long delay); 97void fw_schedule_bm_work(struct fw_card *card, unsigned long delay);
98 98
99static inline struct fw_card *fw_card_get(struct fw_card *card)
100{
101 kref_get(&card->kref);
102
103 return card;
104}
105
106void fw_card_release(struct kref *kref);
107
108static inline void fw_card_put(struct fw_card *card)
109{
110 kref_put(&card->kref, fw_card_release);
111}
112
99 113
100/* -cdev */ 114/* -cdev */
101 115