diff options
Diffstat (limited to 'net/caif/cfsrvl.c')
-rw-r--r-- | net/caif/cfsrvl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/caif/cfsrvl.c b/net/caif/cfsrvl.c index d470c51c6431..aff31f34528f 100644 --- a/net/caif/cfsrvl.c +++ b/net/caif/cfsrvl.c | |||
@@ -158,6 +158,13 @@ void cfsrvl_init(struct cfsrvl *service, | |||
158 | service->layer.ctrlcmd = cfservl_ctrlcmd; | 158 | service->layer.ctrlcmd = cfservl_ctrlcmd; |
159 | service->layer.modemcmd = cfservl_modemcmd; | 159 | service->layer.modemcmd = cfservl_modemcmd; |
160 | service->dev_info = *dev_info; | 160 | service->dev_info = *dev_info; |
161 | kref_init(&service->ref); | ||
162 | } | ||
163 | |||
164 | void cfsrvl_release(struct kref *kref) | ||
165 | { | ||
166 | struct cfsrvl *service = container_of(kref, struct cfsrvl, ref); | ||
167 | kfree(service); | ||
161 | } | 168 | } |
162 | 169 | ||
163 | bool cfsrvl_ready(struct cfsrvl *service, int *err) | 170 | bool cfsrvl_ready(struct cfsrvl *service, int *err) |