Date: Wed, 27 Feb 2013 17:03:38 -0800 From: Tejun Heo Subject: firewire: don't use idr_remove_all() idr_destroy() can destroy idr by itself and idr_remove_all() is being deprecated. Drop its usage. Signed-off-by: Tejun Heo Cc: Stefan Richter Signed-off-by: Andrew Morton --- drivers/firewire/core-cdev.c | 1 - 1 file changed, 1 deletion(-) diff -puN drivers/firewire/core-cdev.c~firewire-dont-use-idr_remove_all drivers/firewire/core-cdev.c --- a/drivers/firewire/core-cdev.c~firewire-dont-use-idr_remove_all +++ a/drivers/firewire/core-cdev.c @@ -1779,7 +1779,6 @@ static int fw_device_op_release(struct i wait_event(client->tx_flush_wait, !has_outbound_transactions(client)); idr_for_each(&client->resource_idr, shutdown_resource, client); - idr_remove_all(&client->resource_idr); idr_destroy(&client->resource_idr); list_for_each_entry_safe(event, next_event, &client->event_list, link) _