lkml.org 
[lkml]   [2013]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/14] remoteproc: don't use idr_remove_all()
    Date
    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>
    ---
    This patch depends on an earlier idr patch and given the trivial
    nature of the patch, I think it would be best to route these together
    through -mm. Please holler if there's any objection.

    Thanks.

    drivers/remoteproc/remoteproc_core.c | 1 -
    1 file changed, 1 deletion(-)

    diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
    index dd3bfaf..634d367 100644
    --- a/drivers/remoteproc/remoteproc_core.c
    +++ b/drivers/remoteproc/remoteproc_core.c
    @@ -1180,7 +1180,6 @@ static void rproc_type_release(struct device *dev)

    rproc_delete_debug_dir(rproc);

    - idr_remove_all(&rproc->notifyids);
    idr_destroy(&rproc->notifyids);

    if (rproc->index >= 0)
    --
    1.8.1


    \
     
     \ /
      Last update: 2013-01-26 03:21    [W:2.249 / U:0.112 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site