diff options
| -rw-r--r-- | drivers/firewire/core.h | 14 | ||||
| -rw-r--r-- | include/linux/firewire.h | 14 |
2 files changed, 14 insertions, 14 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); | |||
| 96 | int fw_compute_block_crc(u32 *block); | 96 | int fw_compute_block_crc(u32 *block); |
| 97 | void fw_schedule_bm_work(struct fw_card *card, unsigned long delay); | 97 | void fw_schedule_bm_work(struct fw_card *card, unsigned long delay); |
| 98 | 98 | ||
| 99 | static inline struct fw_card *fw_card_get(struct fw_card *card) | ||
| 100 | { | ||
| 101 | kref_get(&card->kref); | ||
| 102 | |||
| 103 | return card; | ||
| 104 | } | ||
| 105 | |||
| 106 | void fw_card_release(struct kref *kref); | ||
| 107 | |||
| 108 | static 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 | ||
diff --git a/include/linux/firewire.h b/include/linux/firewire.h index 192d1e43c43c..7e1d4dec83e7 100644 --- a/include/linux/firewire.h +++ b/include/linux/firewire.h | |||
| @@ -134,20 +134,6 @@ struct fw_card { | |||
| 134 | u32 topology_map[(CSR_TOPOLOGY_MAP_END - CSR_TOPOLOGY_MAP) / 4]; | 134 | u32 topology_map[(CSR_TOPOLOGY_MAP_END - CSR_TOPOLOGY_MAP) / 4]; |
| 135 | }; | 135 | }; |
| 136 | 136 | ||
| 137 | static inline struct fw_card *fw_card_get(struct fw_card *card) | ||
| 138 | { | ||
| 139 | kref_get(&card->kref); | ||
| 140 | |||
| 141 | return card; | ||
| 142 | } | ||
| 143 | |||
| 144 | void fw_card_release(struct kref *kref); | ||
| 145 | |||
| 146 | static inline void fw_card_put(struct fw_card *card) | ||
| 147 | { | ||
| 148 | kref_put(&card->kref, fw_card_release); | ||
| 149 | } | ||
| 150 | |||
| 151 | struct fw_attribute_group { | 137 | struct fw_attribute_group { |
| 152 | struct attribute_group *groups[2]; | 138 | struct attribute_group *groups[2]; |
| 153 | struct attribute_group group; | 139 | struct attribute_group group; |
