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>
 #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;
                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;
  */
 void dpaa2_io_down(struct dpaa2_io *d)
 {
-       if (!atomic_dec_and_test(&d->refs))
-               return;
        kfree(d);
 }
 EXPORT_SYMBOL(dpaa2_io_down);