diff options
author | sjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com> | 2011-05-12 22:44:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-15 17:45:55 -0400 |
commit | 43e3692101086add8719c3b8b50b05c9ac5b14e1 (patch) | |
tree | 736fc7d0792a492d9ef3a19ac8fff7ca800ced99 /net/caif/cfrfml.c | |
parent | cb3cb423a0f3c627639535e5d87977ae662d779f (diff) |
caif: Move refcount from service layer to sock and dev.
Instead of having reference counts in caif service layers,
we hook into existing refcount handling in socket layer and netdevice.
Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif/cfrfml.c')
-rw-r--r-- | net/caif/cfrfml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/caif/cfrfml.c b/net/caif/cfrfml.c index e2fb5fa75795..0deabb440051 100644 --- a/net/caif/cfrfml.c +++ b/net/caif/cfrfml.c | |||
@@ -31,9 +31,9 @@ struct cfrfml { | |||
31 | spinlock_t sync; | 31 | spinlock_t sync; |
32 | }; | 32 | }; |
33 | 33 | ||
34 | static void cfrfml_release(struct kref *kref) | 34 | static void cfrfml_release(struct cflayer *layer) |
35 | { | 35 | { |
36 | struct cfsrvl *srvl = container_of(kref, struct cfsrvl, ref); | 36 | struct cfsrvl *srvl = container_of(layer, struct cfsrvl, layer); |
37 | struct cfrfml *rfml = container_obj(&srvl->layer); | 37 | struct cfrfml *rfml = container_obj(&srvl->layer); |
38 | 38 | ||
39 | if (rfml->incomplete_frm) | 39 | if (rfml->incomplete_frm) |