summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorLaurentiu Tudor2017-11-17 14:38:26 +0100
committerGreg Kroah-Hartman2017-11-27 09:20:40 +0100
commit2b0ff43ae5ea8c21ee142cc5ae6b42aadfc3260b (patch)
treeba6acc35ac6b2a5beaffb4e3f655cb8c74663550 /drivers/staging
parentstaging: fsl-mc: drop unused dpcon APIs (diff)
downloadkernel-qcow2-linux-2b0ff43ae5ea8c21ee142cc5ae6b42aadfc3260b.tar.gz
kernel-qcow2-linux-2b0ff43ae5ea8c21ee142cc5ae6b42aadfc3260b.tar.xz
kernel-qcow2-linux-2b0ff43ae5ea8c21ee142cc5ae6b42aadfc3260b.zip
staging: fsl-mc/dpio: remove incomplete refcount implementation
There's an unfinished implementation of reference counting for dpaa2_io structure using atomics. Since it's unused lets remove it for now and, if needed at a later time, make use of krefs instead of rolling our own refcounting. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/fsl-mc/bus/dpio/dpio-service.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/fsl-mc/bus/dpio/dpio-service.c b/drivers/staging/fsl-mc/bus/dpio/dpio-service.c
index a609ec82daf3..591d8b7d4f49 100644
--- a/drivers/staging/fsl-mc/bus/dpio/dpio-service.c
+++ b/drivers/staging/fsl-mc/bus/dpio/dpio-service.c
@@ -43,7 +43,6 @@
#include "qbman-portal.h"
struct dpaa2_io {
- atomic_t refs;
struct dpaa2_io_desc dpio_desc;
struct qbman_swp_desc swp_desc;
struct qbman_swp *swp;
@@ -126,7 +125,6 @@ struct dpaa2_io *dpaa2_io_create(const struct dpaa2_io_desc *desc)
return NULL;
}
- atomic_set(&obj->refs, 1);
obj->dpio_desc = *desc;
obj->swp_desc.cena_bar = obj->dpio_desc.regs_cena;
obj->swp_desc.cinh_bar = obj->dpio_desc.regs_cinh;
@@ -171,8 +169,6 @@ EXPORT_SYMBOL(dpaa2_io_create);
*/
void dpaa2_io_down(struct dpaa2_io *d)
{
- if (!atomic_dec_and_test(&d->refs))
- return;
kfree(d);
}
EXPORT_SYMBOL(dpaa2_io_down);