Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114926
b: refs/heads/master
c: fe3cb82
h: refs/heads/master
v: v3
  • Loading branch information
David Fries authored and Linus Torvalds committed Oct 16, 2008
1 parent 690af83 commit 17cc22a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 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: 347ba8a588c3e49f357291e5a1ac38a11d7e052d
refs/heads/master: fe3cb82364332b9db3b574e9e41de9c27eff470a
7 changes: 1 addition & 6 deletions trunk/drivers/w1/w1_family.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ int w1_register_family(struct w1_family *newf)

if (!ret) {
atomic_set(&newf->refcnt, 0);
newf->need_exit = 0;
list_add_tail(&newf->family_entry, &w1_families);
}
spin_unlock(&w1_flock);
Expand All @@ -73,9 +72,6 @@ void w1_unregister_family(struct w1_family *fent)
break;
}
}

fent->need_exit = 1;

spin_unlock(&w1_flock);

/* deatch devices using this family code */
Expand Down Expand Up @@ -113,8 +109,7 @@ struct w1_family * w1_family_registered(u8 fid)

static void __w1_family_put(struct w1_family *f)
{
if (atomic_dec_and_test(&f->refcnt))
f->need_exit = 1;
atomic_dec(&f->refcnt);
}

void w1_family_put(struct w1_family *f)
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/w1/w1_family.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ struct w1_family
struct w1_family_ops *fops;

atomic_t refcnt;
u8 need_exit;
};

extern spinlock_t w1_flock;
Expand Down

0 comments on commit 17cc22a

Please sign in to comment.