Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165315
b: refs/heads/master
c: 18668ff
h: refs/heads/master
i:
  165313: 951bfdd
  165311: 008cc6d
v: v3
  • Loading branch information
Stefan Richter committed Sep 12, 2009
1 parent c5b807c commit 3a4fc09
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 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: 928ec5f148e729076e9202e7c78babede628a50c
refs/heads/master: 18668ff9a3232d5f942a2f7abc1ad67d2760dcdf
14 changes: 14 additions & 0 deletions trunk/drivers/firewire/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,20 @@ int fw_core_initiate_bus_reset(struct fw_card *card, int short_reset);
int fw_compute_block_crc(u32 *block);
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 */

Expand Down
14 changes: 0 additions & 14 deletions trunk/include/linux/firewire.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,20 +134,6 @@ struct fw_card {
u32 topology_map[(CSR_TOPOLOGY_MAP_END - CSR_TOPOLOGY_MAP) / 4];
};

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 3a4fc09

Please sign in to comment.