Skip to content

Commit

Permalink
remoteproc: don't use idr_remove_all()
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Tejun Heo authored and Linus Torvalds committed Feb 28, 2013
1 parent adaedbd commit 045dc40
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/remoteproc/remoteproc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 045dc40

Please sign in to comment.