aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-topology.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire/fw-topology.h')
-rw-r--r--drivers/firewire/fw-topology.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/firewire/fw-topology.h b/drivers/firewire/fw-topology.h
index addb9f8ea776..7e930f80beb3 100644
--- a/drivers/firewire/fw-topology.h
+++ b/drivers/firewire/fw-topology.h
@@ -51,26 +51,21 @@ struct fw_node {
51 struct fw_node *ports[0]; 51 struct fw_node *ports[0];
52}; 52};
53 53
54static inline struct fw_node * 54static inline struct fw_node *fw_node_get(struct fw_node *node)
55fw_node_get(struct fw_node *node)
56{ 55{
57 atomic_inc(&node->ref_count); 56 atomic_inc(&node->ref_count);
58 57
59 return node; 58 return node;
60} 59}
61 60
62static inline void 61static inline void fw_node_put(struct fw_node *node)
63fw_node_put(struct fw_node *node)
64{ 62{
65 if (atomic_dec_and_test(&node->ref_count)) 63 if (atomic_dec_and_test(&node->ref_count))
66 kfree(node); 64 kfree(node);
67} 65}
68 66
69void 67void fw_destroy_nodes(struct fw_card *card);
70fw_destroy_nodes(struct fw_card *card);
71
72int
73fw_compute_block_crc(u32 *block);
74 68
69int fw_compute_block_crc(u32 *block);
75 70
76#endif /* __fw_topology_h */ 71#endif /* __fw_topology_h */