]> git.karo-electronics.de Git - karo-tx-linux.git/commit
firewire: convert to idr_alloc()
authorTejun Heo <tj@kernel.org>
Thu, 7 Feb 2013 01:31:36 +0000 (12:31 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:30 +0000 (16:47 +1100)
commitc7a44e21ebcdd2b3956d7f93b3655e4e2b8cfece
treeeeddfcb2ac13672afeb2d6763066ec2444a73702
parentf5542a4fb8ad17c105173c8ece5c5ac4894f737e
firewire: convert to idr_alloc()

Convert to the much saner new idr interface.

Only compile tested.

v2: Stefan pointed out that add_client_resource() may be called from
    non-process context.  Preload iff @gfp_mask contains __GFP_WAIT.
    Also updated to include minor upper limit check.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/firewire/core-cdev.c
drivers/firewire/core-device.c