]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rpmsg: don't use idr_remove_all()
authorTejun Heo <tj@kernel.org>
Wed, 20 Feb 2013 02:16:05 +0000 (13:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:40 +0000 (16:53 +1100)
idr_destroy() can destroy idr by itself and idr_remove_all() is being
deprecated.  Drop its usage.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rpmsg/virtio_rpmsg_bus.c

index d85446021ddb36a1ce206fef33a1a81cde0464ab..aaa6840ee05b9d79befe6e379d654fc71c6008f5 100644 (file)
@@ -1036,7 +1036,6 @@ static void rpmsg_remove(struct virtio_device *vdev)
        if (vrp->ns_ept)
                __rpmsg_destroy_ept(vrp, vrp->ns_ept);
 
-       idr_remove_all(&vrp->endpoints);
        idr_destroy(&vrp->endpoints);
 
        vdev->config->del_vqs(vrp->vdev);