|
@@ -45,7 +45,7 @@ cn_queue_alloc_callback_entry(struct cn_queue_dev *dev, const char *name,
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
- atomic_set(&cbq->refcnt, 1);
|
|
|
+ refcount_set(&cbq->refcnt, 1);
|
|
|
|
|
|
atomic_inc(&dev->refcnt);
|
|
|
cbq->pdev = dev;
|
|
@@ -58,7 +58,7 @@ cn_queue_alloc_callback_entry(struct cn_queue_dev *dev, const char *name,
|
|
|
|
|
|
void cn_queue_release_callback(struct cn_callback_entry *cbq)
|
|
|
{
|
|
|
- if (!atomic_dec_and_test(&cbq->refcnt))
|
|
|
+ if (!refcount_dec_and_test(&cbq->refcnt))
|
|
|
return;
|
|
|
|
|
|
atomic_dec(&cbq->pdev->refcnt);
|