Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305909
b: refs/heads/master
c: fc5f80b
h: refs/heads/master
i:
  305907: 260a856
v: v3
  • Loading branch information
Chris Boot authored and Nicholas Bellinger committed May 9, 2012
1 parent d2f1975 commit cb8489d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 253d92371ca29a470b2bbf91fb9824a9fef05657
refs/heads/master: fc5f80b152896c1ffded2a91d11dcb08ffcffebb
1 change: 1 addition & 0 deletions trunk/drivers/firewire/core-card.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ void fw_card_release(struct kref *kref)

complete(&card->done);
}
EXPORT_SYMBOL_GPL(fw_card_release);

void fw_core_remove_card(struct fw_card *card)
{
Expand Down
15 changes: 0 additions & 15 deletions trunk/drivers/firewire/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,6 @@ int fw_compute_block_crc(__be32 *block);
void fw_schedule_bus_reset(struct fw_card *card, bool delayed, bool short_reset);
void fw_schedule_bm_work(struct fw_card *card, unsigned long delay);

static inline struct fw_card *fw_card_get(struct fw_card *card)
{
kref_get(&card->kref);

return card;
}

void fw_card_release(struct kref *kref);

static inline void fw_card_put(struct fw_card *card)
{
kref_put(&card->kref, fw_card_release);
}


/* -cdev */

extern const struct file_operations fw_device_ops;
Expand Down
14 changes: 14 additions & 0 deletions trunk/include/linux/firewire.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,20 @@ struct fw_card {
__be32 maint_utility_register;
};

static inline struct fw_card *fw_card_get(struct fw_card *card)
{
kref_get(&card->kref);

return card;
}

void fw_card_release(struct kref *kref);

static inline void fw_card_put(struct fw_card *card)
{
kref_put(&card->kref, fw_card_release);
}

struct fw_attribute_group {
struct attribute_group *groups[2];
struct attribute_group group;
Expand Down

0 comments on commit cb8489d

Please sign in to comment.