diff options
Diffstat (limited to 'drivers/firewire/fw-topology.h')
-rw-r--r-- | drivers/firewire/fw-topology.h | 13 |
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 | ||
54 | static inline struct fw_node * | 54 | static inline struct fw_node *fw_node_get(struct fw_node *node) |
55 | fw_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 | ||
62 | static inline void | 61 | static inline void fw_node_put(struct fw_node *node) |
63 | fw_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 | ||
69 | void | 67 | void fw_destroy_nodes(struct fw_card *card); |
70 | fw_destroy_nodes(struct fw_card *card); | ||
71 | |||
72 | int | ||
73 | fw_compute_block_crc(u32 *block); | ||
74 | 68 | ||
69 | int fw_compute_block_crc(u32 *block); | ||
75 | 70 | ||
76 | #endif /* __fw_topology_h */ | 71 | #endif /* __fw_topology_h */ |