]> git.karo-electronics.de Git - karo-tx-linux.git/commit
firewire: convert to idr_alloc()
authorTejun Heo <tj@kernel.org>
Wed, 20 Feb 2013 02:16:12 +0000 (13:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:44 +0000 (16:53 +1100)
commite37c1390505c5cb9905822cb8bb5c1ac2a78e436
treefb0ad543dc9539266a9398a3de7e02f2346e13fa
parent6d6b6d13ead1b9c8f23075e87fbc93f6f5549631
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